Changeset - 7b6db0d46056
[Not reviewed]
0 1 0
Jan Kaluza - 10 years ago 2016-01-03 21:43:21
jkaluza@redhat.com
Revert twitter test changes committed by a mistake
1 file changed with 10 insertions and 10 deletions:
0 comments (0 inline, 0 general)
tests/twitter/twitter_test.py
Show inline comments
 
@@ -61,16 +61,16 @@ class Client(sleekxmpp.ClientXMPP):
 
			self.tests["follow"][1] = True
 
			self.send_message(mto=msg['from'], mbody="#friends")
 
		elif self.status == "friends" and msg['body'].find("USER LIST") != -1 and msg['body'].find("colinpwheeler") != -1:
 
			#self.status = "unfollow"
 
			#self.tests["friends"][1] = True
 
			#self.send_message(mto=msg['from'], mbody="#unfollow colinpwheeler")
 
		#elif self.status == "unfollow" and msg['body'] == "You are not following colinpwheeler anymore":
 
			#self.status = "friends2"
 
			#self.tests["unfollow"][1] = True
 
			#self.send_message(mto=msg['from'], mbody="#friends")
 
		#elif self.status == "friends2" and msg['body'].find("USER LIST") != -1 and msg['body'].find("colinpwheeler") == -1:
 
			#self.tests["friends2"][1] = True
 
			self.send_message(mto=msg['from'], mbody="#mode 1")
 
			self.status = "unfollow"
 
			self.tests["friends"][1] = True
 
			self.send_message(mto=msg['from'], mbody="#unfollow colinpwheeler")
 
		elif self.status == "unfollow" and msg['body'] == "You are not following colinpwheeler anymore":
 
			self.status = "friends2"
 
			self.tests["unfollow"][1] = True
 
			self.send_message(mto=msg['from'], mbody="#friends")
 
		elif self.status == "friends2" and msg['body'].find("USER LIST") != -1 and msg['body'].find("colinpwheeler") == -1:
 
			self.tests["friends2"][1] = True
 
			self.finished = True
 

	
 
	def start(self, event):
 
		self.getRoster()
0 comments (0 inline, 0 general)