def test_get_stories_icebox(self, APICall): # setup block = 'icebox' APICall.return_value = self.ice_box_response # action stories = pt_api.get_stories(self.project_id, block, self.token) # confirm self.assertEqual(stories[0][0].id, 0) self.assertEqual(stories[0][1].id, 1)
def test_get_stories(self, APICall): # setup block = 'backlog' APICall.return_value = self.iterations_reponse # action stories = pt_api.get_stories(self.project_id, block, self.token) # confirm self.assertEqual(stories[0][0].id, 0) self.assertEqual(stories[0][1].id, 1) self.assertEqual(stories[1][0].id, 2) self.assertEqual(stories[1][1].id, 3)