

def test_models_in_the_test_package(self):
    '\n        Regression for #12245 - Models can exist in the test package, too.\n        '
    p = Publication.objects.create(title='FooBar')
    ad = Advertisement.objects.create(customer='Lawrence Journal-World')
    ad.publications.add(p)
    ad = Advertisement.objects.get(id=ad.pk)
    self.assertEqual(ad.publications.count(), 1)

dataset/ETHPy150Open django/django/tests/model_package/tests.py ModelPackageTests.test_models_in_the_test_package/original