Пример #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)