aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-05-01 23:58:59 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-05-01 23:58:59 +0300
commit8894d5cea2d21c39b90475957fbbc6937794964d (patch)
tree7f0d4637c131ef49160778005a53bd522b07762b /test.py
parent504a41eb83863fcad4aa0884fd50b989de774eaa (diff)
downloadsupybot_github-8894d5cea2d21c39b90475957fbbc6937794964d.tar.gz
supybot_github-8894d5cea2d21c39b90475957fbbc6937794964d.tar.bz2
supybot_github-8894d5cea2d21c39b90475957fbbc6937794964d.zip
Add new wiki page tests
Diffstat (limited to 'test.py')
-rw-r--r--test.py13
1 files changed, 13 insertions, 0 deletions
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:

© 2014-2024 Faster IT GmbH | imprint | privacy policy