

def test_invalid_name(self):

    class InvalidArticle(models.Model):
        on_site = CurrentSiteManager('places_this_article_should_appear')
    errors = InvalidArticle.check()
    expected = [checks.Error("CurrentSiteManager could not find a field named 'places_this_article_should_appear'.", obj=InvalidArticle.on_site, id='sites.E001')]
    errors.assertEqual(errors, expected)

dataset/ETHPy150Open django/django/tests/sites_framework/tests.py CurrentSiteManagerChecksTests.test_invalid_name/VarMisuse@58/113 `self`->`errors`