From fd93f6e7221a85cc51afa5051a5d690732733f30 Mon Sep 17 00:00:00 2001 From: Aaron Wagener Date: Sun, 8 Oct 2023 04:46:30 -0500 Subject: [PATCH] Tests: add can_reach_region method to WorldTestBase (#2274) --- test/TestBase.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/TestBase.py b/test/TestBase.py index 4df6b807..b7101942 100644 --- a/test/TestBase.py +++ b/test/TestBase.py @@ -189,12 +189,16 @@ class WorldTestBase(unittest.TestCase): self.multiworld.state.remove(item) def can_reach_location(self, location: str) -> bool: - """Determines if the current state can reach the provide location name""" + """Determines if the current state can reach the provided location name""" return self.multiworld.state.can_reach(location, "Location", 1) def can_reach_entrance(self, entrance: str) -> bool: """Determines if the current state can reach the provided entrance name""" return self.multiworld.state.can_reach(entrance, "Entrance", 1) + + def can_reach_region(self, region: str) -> bool: + """Determines if the current state can reach the provided region name""" + return self.multiworld.state.can_reach(region, "Region", 1) def count(self, item_name: str) -> int: """Returns the amount of an item currently in state"""