def test_cannotSyncWithNoItem(self): item = PivotalTrackerItem() self.assertFalse(item.canBeSyncedWith(None))
def test_storyCannotBeSyncedWithJiraItem(self): item = PivotalTrackerItem() toSyncWith = mock() when(toSyncWith).canBeSyncedWith(item).thenReturn(False) self.assertFalse(item.canBeSyncedWith(toSyncWith))