Exemple #1
0
 def test_config_decode(self):
     dc = DataClassWithConfigDecorator('a')
     assert DataClassWithConfigDecorator.from_json('{"idField": "a"}') == dc
Exemple #2
0
 def test_config_encode(self):
     dc = DataClassWithConfigDecorator('a')
     assert dc.to_json() == '{"idField": "a"}'