| Conditions | 2 |
| Total Lines | 14 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 12 | def testGoogle(self): |
||
| 13 | """Test that marvin can help google stuff""" |
||
| 14 | with mock.patch("irc2phpbb.marvin_actions.random") as r: |
||
| 15 | r.randint.return_value = 1 |
||
| 16 | self.assertActionOutput( |
||
| 17 | marvin_actions.marvinGoogle, |
||
| 18 | "kan du googla mos", |
||
| 19 | "LMGTFY https://www.google.se/search?q=mos") |
||
| 20 | self.assertActionOutput( |
||
| 21 | marvin_actions.marvinGoogle, |
||
| 22 | "kan du googla google mos", |
||
| 23 | "LMGTFY https://www.google.se/search?q=google+mos") |
||
| 24 | self.assertActionSilent(marvin_actions.marvinGoogle, "du kan googla") |
||
| 25 | self.assertActionSilent(marvin_actions.marvinGoogle, "gogool") |
||
| 26 |