Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mock.patch('django_testing.models.SampleManager.get_last')
- @mock.patch('django_testing.models.SampleManager.get_first')
- def test_result_of_one_query_in_args_of_another(self, get_first, get_last):
- result = models.Sample.objects.get_first_and_last()
- self.assertEqual((get_first.return_value, get_last.return_value), result)
Add Comment
Please, Sign In to add comment