diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2013-01-19 11:36:27 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2013-01-19 11:36:27 +0000 |
commit | be98957a88f66215ab6fb84810a1b2d394eac879 (patch) | |
tree | 59d71f86527ae3ec0e581aeb903ddc6b8840a0bc /protocols/skype/test.py | |
parent | a9a659869d1f3a128e99827faad7ec353f99377f (diff) | |
parent | 69ae6f2d4394a7df0c7d1b4a27c89da6b7cb99b5 (diff) |
Merge from vmiklos.
Diffstat (limited to 'protocols/skype/test.py')
-rwxr-xr-x | protocols/skype/test.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/protocols/skype/test.py b/protocols/skype/test.py index 99883747..3c35a5c0 100755 --- a/protocols/skype/test.py +++ b/protocols/skype/test.py @@ -27,7 +27,7 @@ class Test(unittest.TestCase): for i in bitlbee_mock.readlines(): line = i.strip() if line.startswith(">> "): - bitlbee.expect(line[3:], timeout=10) + bitlbee.expect_exact(line[3:], timeout=10) elif line.startswith("<< "): bitlbee.sendline(line[3:]) bitlbee_mock.close() @@ -74,6 +74,27 @@ class Test(unittest.TestCase): def testCall(self): self.mock("call") + + def testCallFailed(self): + self.mock("call-failed") + + def testAddYes(self): + self.mock("add-yes") + + def testAddNo(self): + self.mock("add-no") + + def testGroupchatInvited(self): + self.mock("groupchat-invited") + + def testGroupchatInvite(self): + self.mock("groupchat-invite") + + def testCalledYes(self): + self.mock("called-yes") + + def testCalledNo(self): + self.mock("called-no") if __name__ == '__main__': unittest.main() |