def test_404_if_no_such_member(self): self.sm.users_in_group.return_value = False api.is_member(1, 1, dbsrv=self.sm)
def test_succeed_normally(self): self.sm.users_in_group.return_value = True self.assertStatus(api.is_member(1, 1, dbsrv=self.sm), 200)