Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict TryExcept body Exec NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Call NameLoad keyword Str Assign NameStore Call NameLoad Call NameLoad Str TupleLoad AttributeLoad NameLoad attr Dict Str ListLoad Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str TupleLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr CompareLt AttributeLoad NameLoad attr TupleLoad Num Num keyword Str
N/A N/A django N/A pytest django.db models django.test TestCase django_extensions.db.fields AutoSlugField testapp.models ChildSluggedTestModel SluggedTestModel N/A N/A N/A django VERSION N/A 1 7 N/A django.db migrations django.db.migrations.writer MigrationWriter django.utils six N/A django_extensions AutoSlugFieldTest N/A TestCase N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super AutoSlugFieldTest self tearDown N/A N/A N/A N/A N/A N/A SluggedTestModel objects all delete N/A test_auto_create_slug N/A N/A self N/A N/A N/A m N/A SluggedTestModel title foo N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug foo N/A test_auto_create_next_slug N/A N/A self N/A N/A N/A m N/A SluggedTestModel title foo N/A N/A N/A m save N/A m N/A SluggedTestModel title foo N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug foo-2 N/A test_auto_create_slug_with_number N/A N/A self N/A N/A N/A m N/A SluggedTestModel title foo 2012 N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug foo-2012 N/A test_auto_update_slug_with_number N/A N/A self N/A N/A N/A m N/A SluggedTestModel title foo 2012 N/A N/A N/A m save N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug foo-2012 N/A test_update_slug N/A N/A self N/A N/A N/A m N/A SluggedTestModel title foo N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug foo N/A N/A N/A N/A N/A N/A SluggedTestModel objects filter pk N/A m pk update slug foo-2012 N/A m N/A N/A N/A SluggedTestModel objects get pk N/A m pk N/A N/A N/A self assertEqual N/A m slug foo-2012 N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m title foo N/A N/A N/A self assertEqual N/A m slug foo-2012 N/A N/A m title bar N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m title bar N/A N/A N/A self assertEqual N/A m slug foo-2012 N/A test_simple_slug_source N/A N/A self N/A N/A N/A m N/A SluggedTestModel title -foo N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug foo N/A n N/A SluggedTestModel title -foo N/A N/A N/A n save N/A N/A N/A self assertEqual N/A n slug foo-2 N/A N/A N/A n save N/A N/A N/A self assertEqual N/A n slug foo-2 N/A test_empty_slug_source N/A N/A self N/A N/A N/A m N/A SluggedTestModel title N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m slug -2 N/A n N/A SluggedTestModel title N/A N/A N/A n save N/A N/A N/A self assertEqual N/A n slug -3 N/A N/A N/A n save N/A N/A N/A self assertEqual N/A n slug -3 N/A test_inheritance_creates_next_slug N/A N/A self N/A N/A N/A m N/A SluggedTestModel title foo N/A N/A N/A m save N/A n N/A ChildSluggedTestModel title foo N/A N/A N/A n save N/A N/A N/A self assertEqual N/A n slug foo-2 N/A o N/A SluggedTestModel title foo N/A N/A N/A o save N/A N/A N/A self assertEqual N/A o slug foo-3 N/A N/A N/A N/A N/A pytest mark usefixtures admin_user MigrationTest N/A TestCase N/A safe_exec N/A N/A self string value N/A None N/A N/A l N/A N/A N/A N/A string N/A globals l N/A N/A N/A Exception N/A e N/A N/A value N/A N/A N/A N/A self fail N/A Could not exec %r (from value %r): %s N/A N/A N/A string strip value e N/A N/A N/A N/A self fail N/A Could not exec %r: %s N/A N/A N/A string strip e N/A l N/A test_17_migration N/A N/A self N/A N/A N/A 
        Tests making migrations with Django 1.7+'s migration framework
         N/A fields N/A autoslugfield N/A AutoSlugField populate_from otherfield N/A migration N/A type N/A str Migration N/A N/A migrations Migration N/A operations N/A N/A N/A migrations CreateModel MyModel N/A tuple N/A N/A fields items N/A populate_from otherfield N/A N/A models Model N/A writer N/A MigrationWriter migration N/A output N/A N/A writer as_string N/A N/A N/A self assertIsInstance output N/A six binary_type Migration as_string returned unicode N/A result N/A N/A self safe_exec output N/A N/A N/A self assertIn Migration result N/A N/A N/A N/A N/A pytest mark skipif N/A N/A django VERSION N/A 1 7 reason Migrations are handled by south in Django <1.7