예제 #1
0
 def testThrows404ForRound0(self):
     view = ResultsTableView()
     with self.assertRaises(Http404):
         view.get(None, 0)
예제 #2
0
 def testThrows404ForTooHighRound(self):
     tournament = Tournament.instance()
     tournament.save()
     view = ResultsTableView()
     with self.assertRaises(Http404):
         view.get(None, 2)