Exemplo n.º 1
0
 def test_empty_string(self):
     """Test if data is empty."""
     result = jsonize("")
     self.assertEqual(result, "{}")
Exemplo n.º 2
0
 def test_list(self):
     """Test a simple list."""
     result = jsonize("a=[1,two,three]")
     self.assertEqual(result, '{"a": ["1", "two", "three"]}')