Isup: Disable tests if --no-network is enabled

This commit is contained in:
James Lu 2015-05-09 08:03:51 -07:00
parent 7bb4cdee41
commit 098f7f247f

View File

@ -34,6 +34,8 @@ from supybot.test import *
class IsupTestCase(PluginTestCase): class IsupTestCase(PluginTestCase):
plugins = ('Isup',) plugins = ('Isup',)
@unittest.skipUnless(network, "Network-based tests have been disabled via "
"--no-network")
def testBasics(self): def testBasics(self):
self.assertRegexp('check google.com', "It's just you") self.assertRegexp('check google.com', "It's just you")
self.assertRegexp('check dhjeheiaoij', "invalid|url|error", re.I) self.assertRegexp('check dhjeheiaoij', "invalid|url|error", re.I)