def test_m2m_tables_in_subpackage_models(self):
        p = Publication.objects.create(title="FooBar")

        site = Site.objects.create(name="example.com")

        a = Article.objects.create(headline="a foo headline")
        a.publications.add(p)
        a.sites.add(site)

        a = Article.objects.get(id=a.pk)
        self.assertEqual(a.id, a.pk)
        self.assertEqual(a.sites.count(), 1)
Construct TiffSamplePlane instance.
dataset/ETHPy150Open django/django/tests/model_package/tests.py/ModelPackageTests.test_m2m_tables_in_subpackage_models--crossover with--dataset/ETHPy150Open pearu/pylibtiff/libtiff/tiff_sample_plane.py/TiffSamplePlane.__init__