コード例 #1
0
 def test_player_number_is_not_number(self):
     with pytest.raises(PlayerParameterException):
         player = Player(name, tuple_ones)
         player.number = "Tests"
コード例 #2
0
 def test_player_number_negative(self):
     with pytest.raises(PlayerParameterException):
         player = Player(name, tuple_ones)
         player.number = -1
コード例 #3
0
 def test_player_number_decimal(self):
     with pytest.raises(PlayerParameterException):
         player = Player(name, tuple_ones)
         player.number = 3.5