diff options
author | kongr45gpen <electrovesta@gmail.com> | 2016-03-17 20:40:21 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2016-03-17 20:40:21 +0200 |
commit | 4c7f3a6e15562721e64e9fdad294aa156ab561f4 (patch) | |
tree | 25566b40cb0ba75e614b452a27cce35486611dd5 /test.py | |
parent | 1d3ba9f629c8d124b96f7c9e42374bcb6d5e7f2c (diff) | |
download | supybot_github-4c7f3a6e15562721e64e9fdad294aa156ab561f4.tar.gz supybot_github-4c7f3a6e15562721e64e9fdad294aa156ab561f4.tar.bz2 supybot_github-4c7f3a6e15562721e64e9fdad294aa156ab561f4.zip |
Add support for github ping events
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -128,4 +128,25 @@ class GithubTestCase(ExpectationPluginTestCase): it().should.contain('https://github.com/baxterthehacker/public-repo/branches') ) + def testPing(self): + self.conf('allowArbitraryMessages', False) + self.sendRequest('ping') + + self.describe('first message', + it().should.contain('Mind your words, they are important.'), + it().should.contain('test'), + it().should.contain('zen') + ) + + self.conf('allowArbitraryMessages', True) + self.sendRequest('ping') + + self.describe('first message', + it().should.contain('Mind your words, they are important.'), + it().should.contain('test'), + it().should_not.contain('zen') + ) + + + # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: |