Ejemplo n.º 1
0
import gTalk

gClient = gTalk.gTalk("vish61","rulzsux89")
print gClient.signIn()
#gClient.sendMsg("*****@*****.**","Hey just testing")

#gClient.signOut()
Ejemplo n.º 2
0
	def test_22_printContactList_WithoutArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr').printContactList()
Ejemplo n.º 3
0
	def test_23_printContactList_WithArgs_Fail_With_Arg(self):
		self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').printContactList,'TestStr0')
Ejemplo n.º 4
0
	def test_20_checkBlockList_WithArgs_Fail_With_OneInvalid_Arg(self):
		self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').checkBlockList,'TestStr4')
Ejemplo n.º 5
0
	def test_21_checkBlockList_WithArgs_Fail_With_Args_Than_Specified(self):
		self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').checkBlockList,5,'TestStr2')
Ejemplo n.º 6
0
	def test_18_checkBlockList_WithoutArgs_Fail_Without_Arg(self):
		self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').checkBlockList)
Ejemplo n.º 7
0
	def test_19_checkBlockList_WithArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr').checkBlockList(5)
Ejemplo n.º 8
0
	def test_15_signIn_WithArgs_Fail_With_Arg(self):
		self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').signIn,'TestStr0')
Ejemplo n.º 9
0
	def test_16_contactList_WithoutArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr').contactList()
Ejemplo n.º 10
0
	def test_14_signIn_WithoutArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr').signIn()
Ejemplo n.º 11
0
	def test_11_rnewMsg_WithArgs_Fail_With_Arg(self):
		self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').rnewMsg,'TestStr0')
Ejemplo n.º 12
0
	def test_10_rnewMsg_WithoutArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr').rnewMsg()
Ejemplo n.º 13
0
	def test_7_addBlockList_WithArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr').addBlockList(5)
Ejemplo n.º 14
0
	def test_2_gTalk_WithArgs_Pass_With_Only_Valid_Arguments(self):
		gTalk.gTalk('TestStr','TestStr')