From 33ed4558048f8dd5a29275658b3d1892b7b4dd74 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 16 Feb 2013 14:23:11 +0100 Subject: skype: rename these tests, these are about we are added, not about we add --- protocols/skype/t/add-no-bitlbee.mock | 9 --------- protocols/skype/t/add-no-skyped.mock | 13 ------------- protocols/skype/t/add-yes-bitlbee.mock | 9 --------- protocols/skype/t/add-yes-skyped.mock | 23 ----------------------- protocols/skype/t/added-no-bitlbee.mock | 9 +++++++++ protocols/skype/t/added-no-skyped.mock | 13 +++++++++++++ protocols/skype/t/added-yes-bitlbee.mock | 9 +++++++++ protocols/skype/t/added-yes-skyped.mock | 23 +++++++++++++++++++++++ protocols/skype/test.py | 8 ++++---- 9 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 protocols/skype/t/add-no-bitlbee.mock delete mode 100644 protocols/skype/t/add-no-skyped.mock delete mode 100644 protocols/skype/t/add-yes-bitlbee.mock delete mode 100644 protocols/skype/t/add-yes-skyped.mock create mode 100644 protocols/skype/t/added-no-bitlbee.mock create mode 100644 protocols/skype/t/added-no-skyped.mock create mode 100644 protocols/skype/t/added-yes-bitlbee.mock create mode 100644 protocols/skype/t/added-yes-skyped.mock (limited to 'protocols') diff --git a/protocols/skype/t/add-no-bitlbee.mock b/protocols/skype/t/add-no-bitlbee.mock deleted file mode 100644 index d7a70c66..00000000 --- a/protocols/skype/t/add-no-bitlbee.mock +++ /dev/null @@ -1,9 +0,0 @@ ->> NOTICE AUTH -<< NICK alice -<< USER alice alice localhost :Alice ->> PRIVMSG &bitlbee -<< PRIVMSG &bitlbee :account add skype alice foo -<< PRIVMSG &bitlbee :account skype on ->> PRIVMSG &bitlbee :skype - New request: The user bob wants to add you -<< PRIVMSG &bitlbee :no ->> PRIVMSG &bitlbee :skype - Rejected diff --git a/protocols/skype/t/add-no-skyped.mock b/protocols/skype/t/add-no-skyped.mock deleted file mode 100644 index f7283cbc..00000000 --- a/protocols/skype/t/add-no-skyped.mock +++ /dev/null @@ -1,13 +0,0 @@ ->> SEARCH GROUPS CUSTOM -<< GROUPS 48, 49 ->> SEARCH FRIENDS -<< USERS echo123 ->> SET USERSTATUS ONLINE -<< USERSTATUS ONLINE ->> SET USERSTATUS ONLINE -<< USERSTATUS ONLINE ->> GET USER echo123 ONLINESTATUS -<< USER echo123 ONLINESTATUS ONLINE -<< USER bob RECEIVEDAUTHREQUEST Please allow me to see when you are online ->> SET USER bob ISAUTHORIZED FALSE -<< USER bob ISAUTHORIZED FALSE diff --git a/protocols/skype/t/add-yes-bitlbee.mock b/protocols/skype/t/add-yes-bitlbee.mock deleted file mode 100644 index df068f89..00000000 --- a/protocols/skype/t/add-yes-bitlbee.mock +++ /dev/null @@ -1,9 +0,0 @@ ->> NOTICE AUTH -<< NICK alice -<< USER alice alice localhost :Alice ->> PRIVMSG &bitlbee -<< PRIVMSG &bitlbee :account add skype alice foo -<< PRIVMSG &bitlbee :account skype on ->> PRIVMSG &bitlbee :skype - New request: The user bob wants to add you -<< PRIVMSG &bitlbee :yes ->> :bob!bob@skype.com JOIN :&bitlbee diff --git a/protocols/skype/t/add-yes-skyped.mock b/protocols/skype/t/add-yes-skyped.mock deleted file mode 100644 index e22beb97..00000000 --- a/protocols/skype/t/add-yes-skyped.mock +++ /dev/null @@ -1,23 +0,0 @@ ->> SEARCH GROUPS CUSTOM -<< GROUPS 48, 49 ->> SEARCH FRIENDS -<< USERS echo123 ->> SET USERSTATUS ONLINE -<< USERSTATUS ONLINE ->> SET USERSTATUS ONLINE -<< USERSTATUS ONLINE ->> GET USER echo123 ONLINESTATUS -<< USER echo123 ONLINESTATUS ONLINE -<< USER bob RECEIVEDAUTHREQUEST Please allow me to see when you are online ->> SET USER bob ISAUTHORIZED TRUE -<< USER bob ISAUTHORIZED TRUE -<< USER bob RECEIVEDAUTHREQUEST -<< USER bob ISAUTHORIZED TRUE -<< USER bob ISBLOCKED FALSE -<< USER bob BUDDYSTATUS 3 -<< USER bob ONLINESTATUS OFFLINE -<< USER bob ONLINESTATUS ONLINE -<< USER bob TIMEZONE 90000 -<< USER bob FULLNAME Miklos V -<< USER bob LANGUAGE hu Hungarian -<< USER bob COUNTRY hu Hungary diff --git a/protocols/skype/t/added-no-bitlbee.mock b/protocols/skype/t/added-no-bitlbee.mock new file mode 100644 index 00000000..d7a70c66 --- /dev/null +++ b/protocols/skype/t/added-no-bitlbee.mock @@ -0,0 +1,9 @@ +>> NOTICE AUTH +<< NICK alice +<< USER alice alice localhost :Alice +>> PRIVMSG &bitlbee +<< PRIVMSG &bitlbee :account add skype alice foo +<< PRIVMSG &bitlbee :account skype on +>> PRIVMSG &bitlbee :skype - New request: The user bob wants to add you +<< PRIVMSG &bitlbee :no +>> PRIVMSG &bitlbee :skype - Rejected diff --git a/protocols/skype/t/added-no-skyped.mock b/protocols/skype/t/added-no-skyped.mock new file mode 100644 index 00000000..f7283cbc --- /dev/null +++ b/protocols/skype/t/added-no-skyped.mock @@ -0,0 +1,13 @@ +>> SEARCH GROUPS CUSTOM +<< GROUPS 48, 49 +>> SEARCH FRIENDS +<< USERS echo123 +>> SET USERSTATUS ONLINE +<< USERSTATUS ONLINE +>> SET USERSTATUS ONLINE +<< USERSTATUS ONLINE +>> GET USER echo123 ONLINESTATUS +<< USER echo123 ONLINESTATUS ONLINE +<< USER bob RECEIVEDAUTHREQUEST Please allow me to see when you are online +>> SET USER bob ISAUTHORIZED FALSE +<< USER bob ISAUTHORIZED FALSE diff --git a/protocols/skype/t/added-yes-bitlbee.mock b/protocols/skype/t/added-yes-bitlbee.mock new file mode 100644 index 00000000..df068f89 --- /dev/null +++ b/protocols/skype/t/added-yes-bitlbee.mock @@ -0,0 +1,9 @@ +>> NOTICE AUTH +<< NICK alice +<< USER alice alice localhost :Alice +>> PRIVMSG &bitlbee +<< PRIVMSG &bitlbee :account add skype alice foo +<< PRIVMSG &bitlbee :account skype on +>> PRIVMSG &bitlbee :skype - New request: The user bob wants to add you +<< PRIVMSG &bitlbee :yes +>> :bob!bob@skype.com JOIN :&bitlbee diff --git a/protocols/skype/t/added-yes-skyped.mock b/protocols/skype/t/added-yes-skyped.mock new file mode 100644 index 00000000..e22beb97 --- /dev/null +++ b/protocols/skype/t/added-yes-skyped.mock @@ -0,0 +1,23 @@ +>> SEARCH GROUPS CUSTOM +<< GROUPS 48, 49 +>> SEARCH FRIENDS +<< USERS echo123 +>> SET USERSTATUS ONLINE +<< USERSTATUS ONLINE +>> SET USERSTATUS ONLINE +<< USERSTATUS ONLINE +>> GET USER echo123 ONLINESTATUS +<< USER echo123 ONLINESTATUS ONLINE +<< USER bob RECEIVEDAUTHREQUEST Please allow me to see when you are online +>> SET USER bob ISAUTHORIZED TRUE +<< USER bob ISAUTHORIZED TRUE +<< USER bob RECEIVEDAUTHREQUEST +<< USER bob ISAUTHORIZED TRUE +<< USER bob ISBLOCKED FALSE +<< USER bob BUDDYSTATUS 3 +<< USER bob ONLINESTATUS OFFLINE +<< USER bob ONLINESTATUS ONLINE +<< USER bob TIMEZONE 90000 +<< USER bob FULLNAME Miklos V +<< USER bob LANGUAGE hu Hungarian +<< USER bob COUNTRY hu Hungary diff --git a/protocols/skype/test.py b/protocols/skype/test.py index b3f25f46..78f75bb1 100755 --- a/protocols/skype/test.py +++ b/protocols/skype/test.py @@ -94,11 +94,11 @@ class Test(unittest.TestCase): def testCallFailed(self): self.mock("call-failed") - def testAddYes(self): - self.mock("add-yes") + def testAddedYes(self): + self.mock("added-yes") - def testAddNo(self): - self.mock("add-no") + def testAddedNo(self): + self.mock("added-no") def testGroupchatInvited(self): self.mock("groupchat-invited") -- cgit v1.2.3