from phovea_server.util import jsonify


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

  def test_nan_values():
    test_var = float('nan')
    assert jsonify([test_var, 'This', 'is', 'a', 'very', 'complex', 'test', 'case', test_var]) == [null, "This", "is", "a", "very", "complex", "test", "case", null]

@@ -271,20 +271,20 @@
 r%5D) == %5B
-null
+None
 , %22This%22
@@ -335,10 +335,10 @@
 e%22, 
-null
+None
 %5D%0A

change null to None