def testLeagueUpdate(self): league = League(str(uuid.uuid1())) league.update(str(uuid.uuid1())) try: league.update(1) self.assertEqual(False, True, "Should raise invalid field") except InvalidField: pass
def testLeagueUpdate(self): l = League("Monday & Wednesday") l.update("Tuesday & Thursday") try: l.update(1) self.assertEqual(False, True, "Should raise invalid field") except InvalidField: pass
def testLeagueUpdate(self): league = League("Monday & Wednesday") league.update("Tuesday & Thursday") try: league.update(1) self.assertEqual(False, True, "Should raise invalid field") except InvalidField: pass