def test_check_step_with_impassible_square(self): from warlord.path import check_step self.unit.is_passible.return_value = False self.assertTrue(not check_step(self.unit, 'U', self.tile))
def test_check_step_right(self): from warlord.path import check_step self.assertTrue(check_step(self.unit, 'R', self.tile))