def test_canSyncOwner(self): userA = BaseUser() userB = BaseUser() item1 = TrackerItem().withOwner(userA) item2 = TrackerItem().withOwner(userB) item2.syncWith(item1) syncedUser = item2.owner() self.assertTrue(syncedUser is userA)
def test_canSyncReporter(self): userA = BaseUser() userB = BaseUser() item1 = TrackerItem().withRequestor(userA) item2 = TrackerItem().withRequestor(userB) item2.syncWith(item1) syncedUser = item2.requestor() self.assertTrue(syncedUser is userA)
def test_isKnownWhenBothAreNotNone(self): user = BaseUser("blah") self.assertFalse(user.unknown())
def test_isKnownWhenAllAreNone(self): user = BaseUser() self.assertFalse(user.unknown())
def test_canCreateDefault(self): status = BaseUser() self.assertEqual(status.jira(), None) self.assertEqual(status.pivotal(), None)