def test_id_from_mailbox_unexisting(self): result = voicemail_dao.id_from_mailbox("123", "default") self.assertEquals(result, None)
def test_id_from_mailbox(self): generated_id = self._insert_voicemail("123", "default") result = voicemail_dao.id_from_mailbox("123", "default") self.assertEquals(result, generated_id)