diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-05-01 23:58:59 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-05-01 23:58:59 +0300 |
commit | 8894d5cea2d21c39b90475957fbbc6937794964d (patch) | |
tree | 7f0d4637c131ef49160778005a53bd522b07762b /test.py | |
parent | 504a41eb83863fcad4aa0884fd50b989de774eaa (diff) | |
download | supybot_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.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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: |