def test_get_article_by_aid(self): """ Teste da função controllers.get_article_by_aid para retornar um objeto: ``Article``. """ article = self._makeOne() self.assertEqual(controllers.get_article_by_aid(article.id).id, article.id)
def test_get_article_by_aid(self): """ Teste da função controllers.get_article_by_aid para retornar um objeto: ``Article``. """ article = self._make_one() self.assertEqual(controllers.get_article_by_aid(article.id).id, article.id)
def test_get_article_by_aid_without_article(self): """ Testando controllers.get_article_by_aid() sem article, deve retornar None. """ self.assertIsNone(controllers.get_article_by_aid('anyjid'))