From 4c7f3a6e15562721e64e9fdad294aa156ab561f4 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Thu, 17 Mar 2016 20:40:21 +0200 Subject: Add support for github ping events --- test.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test.py') diff --git a/test.py b/test.py index 7a103ea..c0c6d98 100644 --- a/test.py +++ b/test.py @@ -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: -- cgit v1.2.3