def test_unicode_from_json(): ('Unicode.from_json() should deserialize the given dict into a value') # Given an instance of unicode instance = Unicode() # When I call from_json result = instance.from_json(json.dumps({ b'module': b'repocket.attributes', b'type': b'Unicode', b'value': b'unsafestring', })) # Then the result should be a value result.should.equal(u'unsafestring')
def test_unicode_from_json(): ('Unicode.from_json() should deserialize the given dict into a value') # Given an instance of unicode instance = Unicode() # When I call from_json result = instance.from_json( json.dumps({ b'module': b'repocket.attributes', b'type': b'Unicode', b'value': b'unsafestring', })) # Then the result should be a value result.should.equal(u'unsafestring')