Example #1
0
 def test_to_string_when_no_json(self):
     option = DictOption(parse_json=False)
     result = option.to_string({'foo': '1'})
     self.assertEqual(result, str({'foo': '1'}))
Example #2
0
 def test_to_string_when_no_json(self):
     option = DictOption(parse_json=False)
     result = option.to_string({'foo': '1'})
     self.assertEqual(result, str({'foo': '1'}))
Example #3
0
 def test_to_string_when_json(self):
     option = DictOption()
     result = option.to_string({'foo': '1'})
     self.assertEqual(result, '{"foo": "1"}')
Example #4
0
 def test_to_string_when_json(self):
     option = DictOption()
     result = option.to_string({'foo': '1'})
     self.assertEqual(result, '{"foo": "1"}')