def setUp(self): super().setUp() self.article1 = ArticleRule().article self.article2 = ArticleRule().article self.language = LanguageRule.get_or_create_language("en")
def test_get_all_languages(self): languages = LanguageRule.languages for lan in languages: assert LanguageRule.get_or_create_language(lan)