from phovea_server.util import jsonify


class TestCustomEncoders:
  def test_sets(self):
    assert jsonify(list(set())) == []

  def test_nan_values(self):
    assert float('nan') is None

@@ -61,16 +61,18 @@
 oders:%0A 
+ #
  def tes
@@ -79,32 +79,33 @@
 t_sets(self):%0A  
+#
   assert jsonify
@@ -109,20 +109,14 @@
 ify(
-list(
 set())
-)
  == 
@@ -145,25 +145,25 @@
 ues(
-self
 ):%0A    
-assert
+test_var =
  flo
@@ -175,13 +175,170 @@
 an')
- is None
+%0A    assert jsonify(%5Btest_var, 'This', 'is', 'a', 'very', 'complex', 'test', 'case', test_var%5D) == %5Bnull, %22This%22, %22is%22, %22a%22, %22very%22, %22complex%22, %22test%22, %22case%22, null%5D
 %0A

fix nan test case