def test_from_dict3(self): self.assertEqual(Fields.from_dict({ 'date': 'test2', 'datetime': 'test', 'encrypted': 'test3' }), Fields(date_times=['test'], dates=['test2'], encrypted=['test3']))
def test_from_dict2(self): self.assertEqual(Fields.from_dict({ }), Fields())