Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)