diff options
Diffstat (limited to 'test/TestMastery.py')
-rw-r--r-- | test/TestMastery.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/TestMastery.py b/test/TestMastery.py new file mode 100644 index 0000000..3fb3c95 --- /dev/null +++ b/test/TestMastery.py | |||
@@ -0,0 +1,39 @@ | |||
1 | from . import LingoTestBase | ||
2 | |||
3 | |||
4 | class TestMasteryWhenVictoryIsTheEnd(LingoTestBase): | ||
5 | options = { | ||
6 | "mastery_achievements": "22", | ||
7 | "victory_condition": "the_end", | ||
8 | "shuffle_colors": "true" | ||
9 | } | ||
10 | |||
11 | def test_requirement(self): | ||
12 | self.assertFalse(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
13 | |||
14 | self.collect_by_name(["Red", "Blue", "Black", "Purple", "Orange"]) | ||
15 | self.assertTrue(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
16 | self.assertTrue(self.can_reach_location("The End (Solved)")) | ||
17 | self.assertFalse(self.can_reach_location("Orange Tower Seventh Floor - THE MASTER")) | ||
18 | |||
19 | self.collect_by_name(["Green", "Brown", "Yellow"]) | ||
20 | self.assertTrue(self.can_reach_location("Orange Tower Seventh Floor - THE MASTER")) | ||
21 | |||
22 | |||
23 | class TestMasteryWhenVictoryIsTheMaster(LingoTestBase): | ||
24 | options = { | ||
25 | "mastery_achievements": "24", | ||
26 | "victory_condition": "the_master", | ||
27 | "shuffle_colors": "true" | ||
28 | } | ||
29 | |||
30 | def test_requirement(self): | ||
31 | self.assertFalse(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
32 | |||
33 | self.collect_by_name(["Red", "Blue", "Black", "Purple", "Orange"]) | ||
34 | self.assertTrue(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
35 | self.assertTrue(self.can_reach_location("Orange Tower Seventh Floor - THE END")) | ||
36 | self.assertFalse(self.can_reach_location("Orange Tower Seventh Floor - Mastery Achievements")) | ||
37 | |||
38 | self.collect_by_name(["Green", "Gray", "Brown", "Yellow"]) | ||
39 | self.assertTrue(self.can_reach_location("Orange Tower Seventh Floor - Mastery Achievements")) \ No newline at end of file | ||