示例#1
0
 def test_valid_one(self):
     expectedIndex = 2
     actualIndex = opponentRandom(self.board)
     self.assertEquals(expectedIndex, actualIndex)
 def test_valid_one(self):
     expectedIndex = 2
     actualIndex = opponentRandom(self.board)
     self.assertEquals(expectedIndex, actualIndex)
示例#3
0
 def test_valid_non_existant(self):
     expectedIndex = -1
     actualIndex = opponentRandom(['x', 'y'])
     self.assertEquals(expectedIndex, actualIndex)
 def test_valid_non_existant(self):
     expectedIndex = -1
     actualIndex = opponentRandom(['x', 'y'])
     self.assertEquals(expectedIndex, actualIndex)