def test_get_object_with_some_dude(self): some_dude = UserF.create() view = AllContributionsSingleCommentAPIView() view.get_object(some_dude, self.project.id, self.observation.id)
def test_get_object_with_creator(self): view = AllContributionsSingleCommentAPIView() view.get_object(self.creator, self.project.id, self.observation.id)
def test_get_object_with_admin(self): view = AllContributionsSingleCommentAPIView() observation = view.get_object( self.admin, self.project.id, self.observation.id) self.assertEqual(observation, self.observation)
def test_get_object_with_some_dude(self): some_dude = UserF.create() view = AllContributionsSingleCommentAPIView() view.get_object(some_dude, self.project.id, self.observation.id)
def test_get_object_with_creator(self): view = AllContributionsSingleCommentAPIView() view.get_object(self.creator, self.project.id, self.observation.id)
def test_get_object_with_admin(self): view = AllContributionsSingleCommentAPIView() observation = view.get_object(self.admin, self.project.id, self.observation.id) self.assertEqual(observation, self.observation)