def test_serialize_python(self): data = {'foo': 'bar'} serialized = python.serialize(data) expected = "{u'foo': u'bar'}" if six.PY2 else "{'foo': 'bar'}" assert serialized == expected, serialized
def test_serialize_python(self): data = {"foo": "bar"} serialized = python.serialize(data) expected = repr({"foo": "bar"}) assert serialized == expected, serialized
def test_serialize_python(self): data = {'foo': 'bar'} serialized = python.serialize(data) expected = repr({'foo': 'bar'}) assert serialized == expected, serialized
def test_serialize_python(self): data = {'foo': 'bar'} serialized = python.serialize(data) assert serialized == '{\'foo\': \'bar\'}', serialized
def test_serialize_python(self): data = {'foo': 'bar'} serialized = python.serialize(data) assert serialized == '{\'foo\': \'bar\'}', serialized