| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 2 | Tests for the Marvin Budord action |
||
| 3 | """ |
||
| 4 | |||
| 5 | from test_action import ActionTest |
||
| 6 | from irc2phpbb import marvin_actions |
||
| 7 | |||
| 8 | class BudordTest(ActionTest): |
||
| 9 | """Tests for the Marvin Budord action""" |
||
| 10 | def testBudord(self): |
||
| 11 | """Test that marvin knows all the commandments""" |
||
| 12 | for n, _ in enumerate(self.strings.get("budord"), 1): |
||
| 13 | self.assertStringsOutput(marvin_actions.marvinBudord, f"budord #{n}", "budord", f"{n}") |
||
| 14 | |||
| 15 | self.assertStringsOutput(marvin_actions.marvinBudord,"visa stentavla 1", "budord", "1") |
||
| 16 | self.assertActionSilent(marvin_actions.marvinBudord, "var är stentavlan?") |
||
| 17 |