def testRe(self):
    self.assertResponse('re "m/system time/" [status cpu]', 'system time')
    self.assertResponse('re s/user/luser/g user user', 'luser luser')
    self.assertResponse('re s/user/luser/ user user', 'luser user')
    self.assertNotRegexp('re m/foo/ bar', 'has no attribute')
    self.assertResponse('re m/a\\S+y/ "the bot angryman is hairy"', 'angry')
    self.assertResponse('re m/a\\S+y/g "the bot angryman is hairy"', 'angry and airy')
def testRe(self):
    self.assertResponse('re "m/system time/" [status cpu]', 'system time')
    self.assertResponse('re s/user/luser/g user user', 'luser luser')
    self.assertResponse('re s/user/luser/ user user', 'luser user')
    self.assertNotRegexp('re m/foo/ bar', 'has no attribute')
    self.assertResponse('re m/a\\S+y/ "the bot angryman is hairy"', 'angry')
    self.assertResponse('re m/a\\S+y/g "the bot angryman is hairy"', 'angry and airy')