def profiling_level(self):
        result = self.command("profile", -1)

        assert result["was"] >= 0 and result["was"] <= 2
        return result["was"]
Tests basic usage of the migrate command when a model uses Geodjango
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/database.py/Database.profiling_level--crossover with--dataset/ETHPy150Open django/django/tests/gis_tests/gis_migrations/test_commands.py/MigrateTests.test_migrate_gis