def test_no_neutral_traversal(self): """Normally, can't walk over the neutrals""" londo = self.get_region("Orange Londo") # For testing purposes, londo is now neutral londo.owner = None path = MoveCommand.expand_path(["*", "Orange Londo"], self.context()) self.assertIsNone(path)
def test_allow_neutral_traversal(self): londo = self.get_region("Orange Londo") # For testing purposes, londo is now neutral londo.owner = None self.conf["game"]["traversable_neutrals"] = True path = MoveCommand.expand_path(["*", "Orange Londo"], self.context()) self.assertIsNotNone(path)