예제 #1
0
 def test_away_not_touchdown_row_01(self):
     ''' test away team (not a) touchdown at row 1 '''
     piece = game_piece(20, 1, 'name')
     piece.has_ball = False
     team = 'away'
     to_location = (1, 7)
     scored = touchdown(piece, to_location, team)
     self.assertEqual(scored, False)
예제 #2
0
 def test_home_not_touchdown_row_31(self):
     ''' test (not a) touchdown at row 31 '''
     piece = game_piece(20, 1, 'name')
     piece.has_ball = False
     team = 'home'
     to_location = (31, 7)
     scored = touchdown(piece, to_location, team)
     self.assertEqual(scored, False)
예제 #3
0
 def test_away_touchdown_row_00(self):
     ''' test away team touchdown at row 0 '''
     piece = game_piece(20, 1, 'name')
     piece.has_ball = True
     team = 'away'
     to_location = (0, 7)
     scored = touchdown(piece, to_location, team)
     self.assertEqual(scored, True)
예제 #4
0
 def test_home_touchdown_row_32(self):
     ''' test touchdown at row 32 '''
     piece = game_piece(20, 1, 'name')
     piece.has_ball = True
     team = 'home'
     to_location = (32, 7)
     scored = touchdown(piece, to_location, team)
     self.assertEqual(scored, True)