Пример #1
0
 def test_to_dict(self):
     fields = Fields(date_times=['test'], dates=['test2'], encrypted=['test3'])
     self.assertEqual(fields.to_dict(), {
         'date': ['test2'],
         'datetime': ['test'],
         'encrypted': ['test3']
     })
Пример #2
0
 def test_to_dict4(self):
     fields = Fields(encrypted=['test3'])
     self.assertEqual(fields.to_dict(), {
         'encrypted': ['test3']
     })
Пример #3
0
 def test_to_dict3(self):
     fields = Fields(dates=['test2'])
     self.assertEqual(fields.to_dict(), {
         'date': ['test2']
     })
Пример #4
0
 def test_to_dict2(self):
     fields = Fields(date_times=['test'])
     self.assertEqual(fields.to_dict(), {
         'datetime': ['test']
     })