Ejemplo n.º 1
0
 def test_sms_with_bad_login(self):
     sms = GoogleSMS(self.GOOD_LOGIN, self.GOOD_PASSWD)
     try:
         sms.login(self.BAD_LOGIN, self.BAD_PASSWD)
     except Exception:
         pass
     try:
         sms.send(self.TEST_NUMBER, 'test_message')
     except pygooglesms.GoogleVoiceError as error:
         if error.message == self.NOT_LOGGED_IN_MSG:
             return
         raise error
Ejemplo n.º 2
0
 def test_sms_with_good_login(self):
     sms = GoogleSMS(self.GOOD_LOGIN, self.GOOD_PASSWD)
     sms.send(self.TEST_NUMBER, 'test_message')