コード例 #1
0
ファイル: test_commands.py プロジェクト: paylogic/pltk
 def test_empty_string(self):
     """Test if data is empty."""
     result = jsonize("")
     self.assertEqual(result, "{}")
コード例 #2
0
ファイル: test_commands.py プロジェクト: paylogic/pltk
 def test_list(self):
     """Test a simple list."""
     result = jsonize("a=[1,two,three]")
     self.assertEqual(result, '{"a": ["1", "two", "three"]}')