コード例 #1
0
    def test_bad_import2_deconstruct(self):
        from django_mysql.models.fields.sets import SetTextField as STField

        field = STField(models.IntegerField())
        name, path, args, kwargs = field.deconstruct()
        assert path == "django_mysql.models.SetTextField"
コード例 #2
0
ファイル: test_settextfield.py プロジェクト: ezc/django-mysql
    def test_bad_import2_deconstruct(self):
        from django_mysql.models.fields.sets import SetTextField as STField

        field = STField(models.IntegerField())
        name, path, args, kwargs = field.deconstruct()
        assert path == "django_mysql.models.SetTextField"