Esempio n. 1
0
 def test_rand_coords(self):
     """ Should return coodinates that are within the limits. """
     size = 2
     mine_matrix = MineMatrix(size)
     (x, y) = mine_matrix._random_coord()
     self.assertLess(x, mine_matrix.height)
     self.assertLess(y, mine_matrix.width)