from supybot.test import * class BollycaoTestCase(PluginTestCase): plugins = ('Bollycao',) def test_bollycao_no_error(self): self.assertNotError('bollycao') def test_bollycaos_no_error(self): self.assertNotError('bollycaos 2') def test_bollycao(self): self.assertRegexp('bollycao', '1 bollycao = €[-+]?[0-9]*\.?[0-9]+') def test_bollycaos(self): self.assertRegexp('bollycaos 2.40', '€2.40 = [-+]?[0-9]*\.?[0-9]+ bollycaos') def test_bollycaos_with_no_decimal_places(self): self.assertRegexp('bollycaos 2', '€2.00 = [-+]?[0-9]*\.?[0-9]+ bollycaos') # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: