def test_get_all_images_by_username(self): images = model_access.get_all_images() self.assertIsNotNone(images)
def get_queryset(self): return model_access.get_all_images(self.request.user.username)
def get_queryset(self): return model_access.get_all_images()
def test__get_all_images(self): results = list(model_access.get_all_images().order_by("id")) self.assertListEqual(results, self.images)