Example #1
0
 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
Example #2
0
 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
Example #3
0
 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