--- a/test.py Thu Nov 22 17:47:30 2018 +0800
+++ b/test.py Fri Nov 30 20:49:45 2018 +0800
from supybot.test import *
-class MercurialTestCase(PluginTestCase):
+class MercurialTestCase(ChannelPluginTestCase):
config = {'supybot.plugins.Mercurial.repos.hg': '.'}
def testDifferential(self):
- self.assertResponse('differential 3850',
- 'Revision https://phab.mercurial-scm.org/D3850'
- ' Closed, stringutil: update list of re-special characters to include &~')
- self.assertResponse('differential D5194',
- 'Revision https://phab.mercurial-scm.org/D5194'
- ' Abandoned, wireprotov2: add an extension to cache wireproto v2 responses in S3')
+ 'Revision https://phab.mercurial-scm.org/D3850'
+ ' Closed, stringutil: update list of re-special characters to include &~'
+ self.assertResponse('differential 3850', expected)
+ 'Revision https://phab.mercurial-scm.org/D5194'
+ ' Abandoned, wireprotov2: add an extension to cache wireproto v2 responses in S3'
+ self.assertSnarfResponse('snarf me D5194!', expected)
self.assertHelp('differential')
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: