Guest User

Untitled

a guest
Jul 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. @mock.patch('django_testing.models.SampleManager.filter')
  2. def test_filters_by_user_with_patch_and_filter_passed_in(self, filter_method):
  3. user = mock.Mock()
  4. models.Sample.objects.get_by_user(user)
  5. filter_method.assert_called_with(user=user)
Add Comment
Please, Sign In to add comment