diff options
Diffstat (limited to 'test/TestPilgrimage.py')
| -rw-r--r-- | test/TestPilgrimage.py | 114 |
1 files changed, 114 insertions, 0 deletions
| diff --git a/test/TestPilgrimage.py b/test/TestPilgrimage.py new file mode 100644 index 0000000..3cc9194 --- /dev/null +++ b/test/TestPilgrimage.py | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | from . import LingoTestBase | ||
| 2 | |||
| 3 | |||
| 4 | class TestDisabledPilgrimage(LingoTestBase): | ||
| 5 | options = { | ||
| 6 | "enable_pilgrimage": "false", | ||
| 7 | "shuffle_colors": "false" | ||
| 8 | } | ||
| 9 | |||
| 10 | def test_access(self): | ||
| 11 | self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 12 | |||
| 13 | self.collect_by_name("Pilgrim Room - Sun Painting") | ||
| 14 | self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 15 | |||
| 16 | |||
| 17 | class TestPilgrimageWithRoofAndPaintings(LingoTestBase): | ||
| 18 | options = { | ||
| 19 | "enable_pilgrimage": "true", | ||
| 20 | "shuffle_colors": "false", | ||
| 21 | "shuffle_doors": "complex", | ||
| 22 | "pilgrimage_allows_roof_access": "true", | ||
| 23 | "pilgrimage_allows_paintings": "true", | ||
| 24 | "early_color_hallways": "false" | ||
| 25 | } | ||
| 26 | |||
| 27 | def test_access(self): | ||
| 28 | doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance", | ||
| 29 | "Outside The Undeterred - Green Painting"] | ||
| 30 | |||
| 31 | for door in doors: | ||
| 32 | print(door) | ||
| 33 | self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 34 | self.collect_by_name(door) | ||
| 35 | |||
| 36 | self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 37 | |||
| 38 | |||
| 39 | class TestPilgrimageNoRoofYesPaintings(LingoTestBase): | ||
| 40 | options = { | ||
| 41 | "enable_pilgrimage": "true", | ||
| 42 | "shuffle_colors": "false", | ||
| 43 | "shuffle_doors": "complex", | ||
| 44 | "pilgrimage_allows_roof_access": "false", | ||
| 45 | "pilgrimage_allows_paintings": "true", | ||
| 46 | "early_color_hallways": "false" | ||
| 47 | } | ||
| 48 | |||
| 49 | def test_access(self): | ||
| 50 | doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance", | ||
| 51 | "Outside The Undeterred - Green Painting", "Crossroads - Tower Entrance", | ||
| 52 | "Orange Tower Fourth Floor - Hot Crusts Door", "Orange Tower First Floor - Shortcut to Hub Room", | ||
| 53 | "Starting Room - Street Painting"] | ||
| 54 | |||
| 55 | for door in doors: | ||
| 56 | print(door) | ||
| 57 | self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 58 | self.collect_by_name(door) | ||
| 59 | |||
| 60 | self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 61 | |||
| 62 | |||
| 63 | class TestPilgrimageNoRoofNoPaintings(LingoTestBase): | ||
| 64 | options = { | ||
| 65 | "enable_pilgrimage": "true", | ||
| 66 | "shuffle_colors": "false", | ||
| 67 | "shuffle_doors": "complex", | ||
| 68 | "pilgrimage_allows_roof_access": "false", | ||
| 69 | "pilgrimage_allows_paintings": "false", | ||
| 70 | "early_color_hallways": "false" | ||
| 71 | } | ||
| 72 | |||
| 73 | def test_access(self): | ||
| 74 | doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance", | ||
| 75 | "Outside The Undeterred - Green Painting", "Orange Tower First Floor - Shortcut to Hub Room", | ||
| 76 | "Starting Room - Street Painting", "Outside The Initiated - Shortcut to Hub Room", | ||
| 77 | "Directional Gallery - Shortcut to The Undeterred", "Orange Tower First Floor - Salt Pepper Door", | ||
| 78 | "Color Hunt - Shortcut to The Steady", "The Bearer - Entrance", | ||
| 79 | "Orange Tower Fifth Floor - Quadruple Intersection", "The Tenacious - Shortcut to Hub Room", | ||
| 80 | "Outside The Agreeable - Tenacious Entrance", "Crossroads - Tower Entrance", | ||
| 81 | "Orange Tower Fourth Floor - Hot Crusts Door"] | ||
| 82 | |||
| 83 | for door in doors: | ||
| 84 | print(door) | ||
| 85 | self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 86 | self.collect_by_name(door) | ||
| 87 | |||
| 88 | self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 89 | |||
| 90 | |||
| 91 | class TestPilgrimageYesRoofNoPaintings(LingoTestBase): | ||
| 92 | options = { | ||
| 93 | "enable_pilgrimage": "true", | ||
| 94 | "shuffle_colors": "false", | ||
| 95 | "shuffle_doors": "complex", | ||
| 96 | "pilgrimage_allows_roof_access": "true", | ||
| 97 | "pilgrimage_allows_paintings": "false", | ||
| 98 | "early_color_hallways": "false" | ||
| 99 | } | ||
| 100 | |||
| 101 | def test_access(self): | ||
| 102 | doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance", | ||
| 103 | "Outside The Undeterred - Green Painting", "Orange Tower First Floor - Shortcut to Hub Room", | ||
| 104 | "Starting Room - Street Painting", "Outside The Initiated - Shortcut to Hub Room", | ||
| 105 | "Directional Gallery - Shortcut to The Undeterred", "Orange Tower First Floor - Salt Pepper Door", | ||
| 106 | "Color Hunt - Shortcut to The Steady", "The Bearer - Entrance", | ||
| 107 | "Orange Tower Fifth Floor - Quadruple Intersection"] | ||
| 108 | |||
| 109 | for door in doors: | ||
| 110 | print(door) | ||
| 111 | self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
| 112 | self.collect_by_name(door) | ||
| 113 | |||
| 114 | self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM")) | ||
