diff options
Diffstat (limited to 'test/TestPostgame.py')
| -rw-r--r-- | test/TestPostgame.py | 62 |
1 files changed, 62 insertions, 0 deletions
| diff --git a/test/TestPostgame.py b/test/TestPostgame.py new file mode 100644 index 0000000..d2e2232 --- /dev/null +++ b/test/TestPostgame.py | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | from . import LingoTestBase | ||
| 2 | |||
| 3 | |||
| 4 | class TestPostgameVanillaTheEnd(LingoTestBase): | ||
| 5 | options = { | ||
| 6 | "shuffle_doors": "none", | ||
| 7 | "victory_condition": "the_end", | ||
| 8 | "shuffle_postgame": "false", | ||
| 9 | } | ||
| 10 | |||
| 11 | def test_requirement(self): | ||
| 12 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 13 | |||
| 14 | self.assertTrue("The End (Solved)" in location_names) | ||
| 15 | self.assertTrue("Champion's Rest - YOU" in location_names) | ||
| 16 | self.assertFalse("Orange Tower Seventh Floor - THE MASTER" in location_names) | ||
| 17 | self.assertFalse("The Red - Achievement" in location_names) | ||
| 18 | |||
| 19 | |||
| 20 | class TestPostgameComplexDoorsTheEnd(LingoTestBase): | ||
| 21 | options = { | ||
| 22 | "shuffle_doors": "complex", | ||
| 23 | "victory_condition": "the_end", | ||
| 24 | "shuffle_postgame": "false", | ||
| 25 | } | ||
| 26 | |||
| 27 | def test_requirement(self): | ||
| 28 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 29 | |||
| 30 | self.assertTrue("The End (Solved)" in location_names) | ||
| 31 | self.assertFalse("Orange Tower Seventh Floor - THE MASTER" in location_names) | ||
| 32 | self.assertTrue("The Red - Achievement" in location_names) | ||
| 33 | |||
| 34 | |||
| 35 | class TestPostgameLateColorHunt(LingoTestBase): | ||
| 36 | options = { | ||
| 37 | "shuffle_doors": "none", | ||
| 38 | "victory_condition": "the_end", | ||
| 39 | "sunwarp_access": "disabled", | ||
| 40 | "shuffle_postgame": "false", | ||
| 41 | } | ||
| 42 | |||
| 43 | def test_requirement(self): | ||
| 44 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 45 | |||
| 46 | self.assertFalse("Champion's Rest - YOU" in location_names) | ||
| 47 | |||
| 48 | |||
| 49 | class TestPostgameVanillaTheMaster(LingoTestBase): | ||
| 50 | options = { | ||
| 51 | "shuffle_doors": "none", | ||
| 52 | "victory_condition": "the_master", | ||
| 53 | "shuffle_postgame": "false", | ||
| 54 | } | ||
| 55 | |||
| 56 | def test_requirement(self): | ||
| 57 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 58 | |||
| 59 | self.assertTrue("Orange Tower Seventh Floor - THE END" in location_names) | ||
| 60 | self.assertTrue("Orange Tower Seventh Floor - Mastery Achievements" in location_names) | ||
| 61 | self.assertTrue("The Red - Achievement" in location_names) | ||
| 62 | self.assertFalse("Mastery Panels" in location_names) | ||
