# Path: cities/models.py
# def SET_NULL_OR_CASCADE(collector, field, sub_objs, using):
#     def slugify(self):
#     def save(self, *args, **kwargs):
#     def hierarchy(self):
#     def get_absolute_url(self):
#     def __str__(self):
#     def save(self, *args, **kwargs):
#     def __str__(self):
#     def slugify(self):
#     def parent(self):
#     def __str__(self):
#     def clean(self):
#     def slugify(self):
#     def parent(self):
#     def full_code(self):
#     def slugify(self):
#     def parent(self):
#     def full_code(self):
#     def slugify(self):
#     def parent(self):
#     def slugify(self):
#     def parent(self):
#     def slugify(self):
#     def __str__(self):
#     def slugify(self):
#     def parent(self):
#     def name_full(self):
#     def names(self):
#     def __str__(self):
#     def slugify(self):
# class SlugModel(models.Model):
#     class Meta:
# class Place(models.Model):
#     class Meta:
# class BaseContinent(Place, SlugModel):
#     class Meta:
# class Continent(BaseContinent):
#     class Meta(BaseContinent.Meta):
# class BaseCountry(Place, SlugModel):
#     class Meta:
# class Country(BaseCountry):
#     class Meta(BaseCountry.Meta):
# class Region(Place, SlugModel):
#     class Meta:
# class Subregion(Place, SlugModel):
#     class Meta:
# class BaseCity(Place, SlugModel):
#     class Meta:
# class City(BaseCity):
#     class Meta(BaseCity.Meta):
# class District(Place, SlugModel):
#     class Meta:
# class AlternativeName(SlugModel):
# class PostalCode(Place, SlugModel):
#     class Meta:
#     KIND = Choices(*ALTERNATIVE_NAME_TYPES)


from django.contrib.gis.geos import Point
from django.test import TestCase
from cities import models
        region = models.Region(
            country=country,
        )
        region.save()
        return models.Subregion(
            region=region,
        )


class CityTestCase(SlugModelTest, TestCase):

    def instantiate(self):
        country = models.Country(
            population=0
        )
        country.save()
        return models.City(
            country=country,
            location=Point(0, 0),
            population=0,
        )


class DistrictTestCase(SlugModelTest, TestCase):

    def instantiate(self):
        country = models.Country(
            population=0
        )
        country.save()

# Path: cities/models.py
# def SET_NULL_OR_CASCADE(collector, field, sub_objs, using):
#     def slugify(self):
#     def save(self, *args, **kwargs):
#     def hierarchy(self):
#     def get_absolute_url(self):
#     def __str__(self):
#     def save(self, *args, **kwargs):
#     def __str__(self):
#     def slugify(self):
#     def parent(self):
#     def __str__(self):
#     def clean(self):
#     def slugify(self):
#     def parent(self):
#     def full_code(self):
#     def slugify(self):
#     def parent(self):
#     def full_code(self):
#     def slugify(self):
#     def parent(self):
#     def slugify(self):
#     def parent(self):
#     def slugify(self):
#     def __str__(self):
#     def slugify(self):
#     def parent(self):
#     def name_full(self):
#     def names(self):
#     def __str__(self):
#     def slugify(self):
# class SlugModel(models.Model):
#     class Meta:
# class Place(models.Model):
#     class Meta:
# class BaseContinent(Place, SlugModel):
#     class Meta:
# class Continent(BaseContinent):
#     class Meta(BaseContinent.Meta):
# class BaseCountry(Place, SlugModel):
#     class Meta:
# class Country(BaseCountry):
#     class Meta(BaseCountry.Meta):
# class Region(Place, SlugModel):
#     class Meta:
# class Subregion(Place, SlugModel):
#     class Meta:
# class BaseCity(Place, SlugModel):
#     class Meta:
# class City(BaseCity):
#     class Meta(BaseCity.Meta):
# class District(Place, SlugModel):
#     class Meta:
# class AlternativeName(SlugModel):
# class PostalCode(Place, SlugModel):
#     class Meta:
#     KIND = Choices(*ALTERNATIVE_NAME_TYPES)


# Path: test_project/test_app/tests/test_models.py
from django.contrib.gis.geos import Point
from django.test import TestCase
from cities import models

        region = models.Region(
            country=country,
        )
        region.save()
        return models.Subregion(
            region=region,
        )


class CityTestCase(SlugModelTest, TestCase):

    def instantiate(self):
        country = models.Country(
            population=0
        )
        country.save()
        return models.City(
            country=country,
            location=Point(0, 0),
            population=0,
        )


class DistrictTestCase(SlugModelTest, TestCase):

    def instantiate(self):
        country = models.Country(
            population=0
        )
        country.save()

        city = models.City(