Ejemplo n.º 1
0
 def test_serialization(self):
     options = GrammarOptions(theme="dummy",
                              include_adj=True,
                              names_to_exclude=["name1", "name1", "name2"])
     data = options.serialize()
     json_data = json.dumps(data)
     options2 = GrammarOptions.deserialize(json.loads(json_data))
     assert options == options2
 def test_serialization(self):
     options = GrammarOptions()
     data = options.serialize()
     options2 = GrammarOptions.deserialize(data)
     assert options == options2