err-elizabot

a classic electronic shrink for the chatbot err
git clone https://git.ce9e.org/err-elizabot.git

commit
2936fea63f0f045d38502178da3f2990ef58a430
parent
28cf04c8e1089febd7aaf4f86efb7d6f7577c9be
Author
Guillaume BINET <gbin@gootz.net>
Date
2013-01-05 19:33
python 27 test fix

Diffstat

M tests/test_eliza.py 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/tests/test_eliza.py b/tests/test_eliza.py

@@ -1,5 +1,6 @@
    1     1 # coding=utf-8
    2     2 from errbot.backends.test import FullStackTest, pushMessage, popMessage
   -1     3 from errbot import PY3
    3     4 
    4     5 
    5     6 class TestCommands(FullStackTest):
@@ -9,7 +10,8 @@ class TestCommands(FullStackTest):
    9    10 
   10    11     def test_eliza(self):
   11    12         pushMessage('!eliza Hello')
   12    -1         self.assertRegex(popMessage(), r"Hi|Hello")
   -1    13         ref = self.assertRegex if PY3 else self.assertRegexpMatches
   -1    14         ref(popMessage(), r"Hi|Hello")
   13    15 
   14    16     def test_askus(self):
   15    17         self.assertCommandFound('!askus')