import gTalk gClient = gTalk.gTalk("vish61","rulzsux89") print gClient.signIn() #gClient.sendMsg("*****@*****.**","Hey just testing") #gClient.signOut()
def test_22_printContactList_WithoutArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr').printContactList()
def test_23_printContactList_WithArgs_Fail_With_Arg(self): self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').printContactList,'TestStr0')
def test_20_checkBlockList_WithArgs_Fail_With_OneInvalid_Arg(self): self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').checkBlockList,'TestStr4')
def test_21_checkBlockList_WithArgs_Fail_With_Args_Than_Specified(self): self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').checkBlockList,5,'TestStr2')
def test_18_checkBlockList_WithoutArgs_Fail_Without_Arg(self): self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').checkBlockList)
def test_19_checkBlockList_WithArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr').checkBlockList(5)
def test_15_signIn_WithArgs_Fail_With_Arg(self): self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').signIn,'TestStr0')
def test_16_contactList_WithoutArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr').contactList()
def test_14_signIn_WithoutArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr').signIn()
def test_11_rnewMsg_WithArgs_Fail_With_Arg(self): self.assertRaises(Exception,gTalk.gTalk('TestStr','TestStr').rnewMsg,'TestStr0')
def test_10_rnewMsg_WithoutArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr').rnewMsg()
def test_7_addBlockList_WithArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr').addBlockList(5)
def test_2_gTalk_WithArgs_Pass_With_Only_Valid_Arguments(self): gTalk.gTalk('TestStr','TestStr')