| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 19 | def testRandomStrip(self): |
||
| 20 | """Test that marvin can recommend random comics""" |
||
| 21 | messageFormat = self.strings.get("commitstrip").get("message") |
||
| 22 | expected = messageFormat.format(url=self.strings.get("commitstrip").get("urlPage") + "123") |
||
| 23 | with mock.patch("irc2phpbb.marvin_actions.random") as r: |
||
| 24 | r.randint.return_value = 123 |
||
| 25 | self.assertActionOutput(marvin_actions.marvinStrip, "random strip kanske?", expected) |
||
| 26 |