| Conditions | 3 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 12 | def testPrinciple(self): |
||
| 13 | """Test that marvin can recite some software principles""" |
||
| 14 | principles = self.strings.get("principle") |
||
| 15 | for key, value in principles.items(): |
||
| 16 | self.assertActionOutput(marvin_actions.marvinPrinciple, f"princip {key}", value) |
||
| 17 | with mock.patch("irc2phpbb.marvin_actions.random") as r: |
||
| 18 | r.choice.return_value = "dry" |
||
| 19 | self.assertStringsOutput(marvin_actions.marvinPrinciple, "princip", "principle", "dry") |
||
| 20 | self.assertActionSilent(marvin_actions.marvinPrinciple, "principlös") |
||
| 21 |