예제 #1
0
 def test_uuid_decode(self):
     assert (DataClassWithUuid.from_dict(
         self.dc_uuid_json) == DataClassWithUuid(UUID(self.uuid_s)))
예제 #2
0
 def test_uuid_encode(self):
     assert (DataClassWithUuid(UUID(
         self.uuid_s)).to_json() == self.dc_uuid_json)