Пример #1
0
 def test_empty_list(self):
     expectedIndex = -1
     actualIndex = opponent([])
     self.assertEquals(expectedIndex, actualIndex)
Пример #2
0
 def test_zero_index(self):
     expectedIndex = 0
     actualIndex = opponent([' ', 'x', 'y'])
     self.assertEquals(expectedIndex, actualIndex)
Пример #3
0
 def test_last_index(self):
     expectedIndex = 2
     actualIndex = opponent(['x', 'y', ' '])
     self.assertEquals(expectedIndex, actualIndex)
Пример #4
0
 def test_first_index(self):
     expectedIndex = 2
     actualIndex = opponent(self.board)
     self.assertEquals(expectedIndex, actualIndex)
Пример #5
0
 def test_no_index(self):
     expectedIndex = -1
     actualIndex = opponent(['x'])
     self.assertEquals(expectedIndex, actualIndex)
Пример #6
0
 def test_empty_list(self):
     expectedIndex = -1
     actualIndex = opponent([])
     self.assertEquals(expectedIndex, actualIndex)
Пример #7
0
 def test_last_index(self):
     expectedIndex = 2
     actualIndex = opponent(['x', 'y', ' '])
     self.assertEquals(expectedIndex, actualIndex)
Пример #8
0
 def test_zero_index(self):
     expectedIndex = 0
     actualIndex = opponent([' ', 'x', 'y'])
     self.assertEquals(expectedIndex, actualIndex)
Пример #9
0
 def test_no_index(self):
     expectedIndex = -1
     actualIndex = opponent(['x'])
     self.assertEquals(expectedIndex, actualIndex)
Пример #10
0
 def test_first_index(self):
     expectedIndex = 2
     actualIndex = opponent(self.board)
     self.assertEquals(expectedIndex, actualIndex)