From 8894d5cea2d21c39b90475957fbbc6937794964d Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Thu, 1 May 2014 23:58:59 +0300 Subject: Add new wiki page tests --- test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test.py') diff --git a/test.py b/test.py index 58ee4ac..e97ed91 100644 --- a/test.py +++ b/test.py @@ -35,4 +35,17 @@ class GithubTestCase(ExpectationPluginTestCase): # By default, merged commits should not be shown self.assertError('get 5th message') + def testNewWikiPage(self): + self.sendRequest('wiki-new-page') + + self.describe('first message', + it().should.contain('modified 1 wiki page'), + it().should.contain('https://github.com/kongr45gpen/supybot-github/wiki/_compare/9941c1a1bb1b2db99ad9aabf10c8f946d808e634') + ) + + self.describe('second message', + it().should.contain('created Home'), + it().should.contain('https://github.com/kongr45gpen/supybot-github/wiki/Home') + ) + # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: -- cgit v1.2.3