|  | 
| 1 | 1 | from . import SVTestBase | 
| 2 | 2 | from ..options import ExcludeGingerIsland, Walnutsanity, ToolProgression, SkillProgression | 
| 3 | 3 | from ..strings.ap_names.ap_option_names import WalnutsanityOptionName | 
|  | 4 | +from ..strings.ap_names.transport_names import Transportation | 
| 4 | 5 | 
 | 
| 5 | 6 | 
 | 
| 6 | 7 | class TestWalnutsanityNone(SVTestBase): | 
| @@ -28,24 +29,27 @@ def test_logic_received_walnuts(self): | 
| 28 | 29 |         self.collect("Island West Turtle") | 
| 29 | 30 |         self.collect("Progressive House") | 
| 30 | 31 |         self.collect("5 Golden Walnuts", 10) | 
|  | 32 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
| 31 | 33 | 
 | 
| 32 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
| 33 | 34 |         self.collect("Island North Turtle") | 
| 34 | 35 |         self.collect("Island Resort") | 
| 35 | 36 |         self.collect("Open Professor Snail Cave") | 
| 36 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 37 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
|  | 38 | + | 
| 37 | 39 |         self.collect("Dig Site Bridge") | 
| 38 | 40 |         self.collect("Island Farmhouse") | 
| 39 | 41 |         self.collect("Qi Walnut Room") | 
| 40 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 42 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
|  | 43 | + | 
| 41 | 44 |         self.collect("Combat Level", 10) | 
| 42 | 45 |         self.collect("Mining Level", 10) | 
| 43 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 46 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
|  | 47 | + | 
| 44 | 48 |         self.collect("Progressive Slingshot") | 
| 45 | 49 |         self.collect("Progressive Weapon", 5) | 
| 46 | 50 |         self.collect("Progressive Pickaxe", 4) | 
| 47 | 51 |         self.collect("Progressive Watering Can", 4) | 
| 48 |  | -        self.assertTrue(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 52 | +        self.assert_can_reach_location(Transportation.parrot_express) | 
| 49 | 53 | 
 | 
| 50 | 54 | 
 | 
| 51 | 55 | class TestWalnutsanityPuzzles(SVTestBase): | 
| @@ -131,9 +135,9 @@ def test_logic_received_walnuts(self): | 
| 131 | 135 |         self.collect("Island West Turtle") | 
| 132 | 136 |         self.collect("5 Golden Walnuts", 5) | 
| 133 | 137 | 
 | 
| 134 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 138 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
| 135 | 139 |         self.collect("Island North Turtle") | 
| 136 |  | -        self.assertTrue(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 140 | +        self.assert_can_reach_location(Transportation.parrot_express) | 
| 137 | 141 | 
 | 
| 138 | 142 | 
 | 
| 139 | 143 | class TestWalnutsanityDigSpots(SVTestBase): | 
| @@ -193,20 +197,20 @@ def test_logic_received_walnuts(self): | 
| 193 | 197 |         # You need to receive 40, and collect 4 | 
| 194 | 198 |         self.collect("Island Obelisk") | 
| 195 | 199 |         self.collect("Island West Turtle") | 
| 196 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 200 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
| 197 | 201 |         items = self.collect("5 Golden Walnuts", 8) | 
| 198 |  | -        self.assertTrue(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 202 | +        self.assert_can_reach_location(Transportation.parrot_express) | 
| 199 | 203 |         self.remove(items) | 
| 200 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 204 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
| 201 | 205 |         items = self.collect("3 Golden Walnuts", 14) | 
| 202 |  | -        self.assertTrue(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 206 | +        self.assert_can_reach_location(Transportation.parrot_express) | 
| 203 | 207 |         self.remove(items) | 
| 204 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 208 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
| 205 | 209 |         items = self.collect("Golden Walnut", 40) | 
| 206 |  | -        self.assertTrue(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 210 | +        self.assert_can_reach_location(Transportation.parrot_express) | 
| 207 | 211 |         self.remove(items) | 
| 208 |  | -        self.assertFalse(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 212 | +        self.assert_cannot_reach_location(Transportation.parrot_express) | 
| 209 | 213 |         self.collect("5 Golden Walnuts", 4) | 
| 210 | 214 |         self.collect("3 Golden Walnuts", 6) | 
| 211 | 215 |         self.collect("Golden Walnut", 2) | 
| 212 |  | -        self.assertTrue(self.multiworld.state.can_reach_location("Parrot Express", self.player)) | 
|  | 216 | +        self.assert_can_reach_location(Transportation.parrot_express) | 
0 commit comments