def test_mailbox_exist_wrong(self): su = VoicemailSuperUser(12345) su.token = "FAKE" with self.set_response('tests/data/mailbox_exist_wrong.xml'): with self.assertRaises(SquirrelException) as e: exist = su.mailbox_exist('123123')
def test_mailbox_exist_false(self): su = VoicemailSuperUser(12345) su.token = "FAKE" with self.set_response('tests/data/mailbox_exist_false.xml'): exist = su.mailbox_exist('12121') self.assertFalse(exist)