def test_position_is_not_allowed(self): self.assertEqual(w.is_position_allowed(250, 56), False)
def test_showing_positions_min(self): #robot.robot_start() # actual_outcome = world.text.world.show_position('hal') # expected_outcome = ('> HAL moved forward by 10 steps.') self.assertTrue(world.is_position_allowed(10,0),True)
def test_is_position_allowed(self): self.assertEqual(w.is_position_allowed(12, 34), True)
def test_position_allowed_true(self): self.assertEqual(world.is_position_allowed(50, 50), True)
def test_position_allowed_false(self): self.assertEqual(world.is_position_allowed(300, 500), False)
def test_is_position_allowed(self): position_allowed = world.is_position_allowed(0, 10) self.assertTrue(position_allowed)
def test_not_position_allowed(self): position_not_allowed = world.is_position_allowed(300, 250) self.assertFalse(position_not_allowed)