Ejemplo n.º 1
0
 def test_serializer_create_regular(self, super_create_mock):
     dummy = {}
     serializer = TransactionSerializer()
     serializer.create(dummy)
     super_create_mock.assert_called_with(dummy)
Ejemplo n.º 2
0
 def test_serializer_create_periodic(self, create_mock):
     dummy = { 'periodic': None }
     serializer = TransactionSerializer()
     serializer.create(dummy)
     create_mock.assert_called_with(**dummy)