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'}))
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'}))
def test_to_string_when_json(self): option = DictOption() result = option.to_string({'foo': '1'}) self.assertEqual(result, '{"foo": "1"}')
def test_to_string_when_json(self): option = DictOption() result = option.to_string({'foo': '1'}) self.assertEqual(result, '{"foo": "1"}')