コード例 #1
0
 def test_gc_check_game_bad_game(self):
     g = GameController()
     with self.assertRaises(ValueError):
         response_object = {
             "bulls": None,
             "cows": None,
             "analysis": None,
             "status": None
         }
         g.game = None
         g._check_game_on(response_object=response_object)
コード例 #2
0
 def test_gc_guess_no_game(self):
     g = GameController()
     g.game = None
     with self.assertRaises(ValueError):
         g.guess(1, 2, 3, 4)