def test_canAddCommentsToStory(self):
     tracker = self.pivotal_
     item = PivotalTrackerItem().withSummary("test_canAddCommentsToStory").withDescription("description")
     tracker.update(item)
     aComment = Testing.addCommentToItemIn(tracker)
     item = next(tracker.items())
     self.assertEqual(item.comments()[0], aComment)
 def test_canAddCommentsToTicket(self):
     tracker = self.jira_
     item = jiraItemFactory(Env().get("jira", "project"), "test_canAddCommentsToTicket-1", "can comment on this?")
     tracker.update(item)
     aComment = Testing.addCommentToItemIn(tracker)
     item = next(tracker.items())
     self.assertEqual(item.comments()[0], aComment)
 def test_canAddCommentsToStory(self):
     tracker = self.pivotal_
     item = PivotalTrackerItem().withSummary(
         "test_canAddCommentsToStory").withDescription("description")
     tracker.update(item)
     aComment = Testing.addCommentToItemIn(tracker)
     item = next(tracker.items())
     self.assertEqual(item.comments()[0], aComment)
 def test_canAddCommentsToTicket(self):
     tracker = self.jira_
     item = jiraItemFactory(Env().get("jira", "project"),
                            "test_canAddCommentsToTicket-1",
                            "can comment on this?")
     tracker.update(item)
     aComment = Testing.addCommentToItemIn(tracker)
     item = next(tracker.items())
     self.assertEqual(item.comments()[0], aComment)