Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore ListComp TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Str NameLoad Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Str NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str decorator_list
N/A __future__ unicode_literals swappable_models.models Article django.contrib.auth.models Permission django.contrib.contenttypes.models ContentType django.core management django.test TestCase override_settings django.utils.six StringIO SwappableModelTests N/A TestCase N/A N/A available_apps N/A swappable_models django.contrib.auth django.contrib.contenttypes test_generated_data N/A N/A self N/A N/A N/A Permissions and content types are not created for a swapped model N/A N/A N/A N/A N/A N/A Permission objects filter content_type__app_label swappable_models delete N/A N/A N/A N/A N/A N/A ContentType objects filter app_label swappable_models delete N/A new_io N/A StringIO N/A N/A N/A management call_command migrate interactive False stdout new_io N/A apps_models N/A N/A N/A N/A p content_type app_label N/A N/A p content_type model N/A p N/A N/A N/A Permission objects all N/A N/A N/A self assertIn N/A swappable_models alternatearticle apps_models N/A N/A N/A self assertNotIn N/A swappable_models article apps_models N/A apps_models N/A N/A N/A ct app_label N/A ct model N/A ct N/A N/A N/A ContentType objects all N/A N/A N/A self assertIn N/A swappable_models alternatearticle apps_models N/A N/A N/A self assertNotIn N/A swappable_models article apps_models N/A N/A override_settings TEST_ARTICLE_MODEL swappable_models.AlternateArticle test_case_insensitive N/A N/A self N/A N/A N/A Model names are case insensitive. Check that model swapping honors this. N/A N/A N/A N/A N/A N/A Article objects all N/A N/A N/A AttributeError N/A N/A N/A N/A self fail Swappable model names should be case insensitive. N/A N/A N/A self assertIsNone N/A N/A Article _meta swapped N/A N/A override_settings TEST_ARTICLE_MODEL swappable_models.article N/A