Example #1
0
    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)
Example #2
0
    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)
Example #3
0
 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'))
Example #4
0
 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'))