| Conditions | 2 |
| Total Lines | 4 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 24 | def testSunError(self): |
||
| 25 | """Tests that marvin returns the proper error message when joke API is down""" |
||
| 26 | with mock.patch("irc2phpbb.marvin_actions.requests.get", side_effect=Exception("API Down!")): |
||
| 27 | self.assertStringsOutput(marvin_actions.marvinSun, "när går solen ner?", "sun", "error") |
||
| 28 |