Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Dict decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr With Call NameLoad keyword Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Str AttributeLoad NameLoad attr keyword Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num With Call NameLoad keyword Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call NameLoad Str AttributeLoad NameLoad attr keyword Call NameLoad decorator_list decorator_list
N/A __future__ unicode_literals N/A json tempfile NamedTemporaryFile django.core.management call_command django.core.serializers.base DeserializationError django.core.serializers.json Serializer JSONSerializer django.utils.encoding force_bytes django.utils.six StringIO mutant.models ModelDefinition mutant.test.testcases ModelDefinitionDDLTestCase mutant.utils remove_from_app_cache DataCommandTestCase N/A ModelDefinitionDDLTestCase N/A setUp N/A N/A self N/A N/A N/A N/A self model_def N/A N/A N/A ModelDefinition objects create app_label mutant object_name Model N/A N/A self model_cls N/A N/A N/A self model_def model_class N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self model_def pk N/A N/A N/A N/A N/A self model_def delete N/A N/A DumpDataTestCase N/A DataCommandTestCase N/A dump_model_data N/A N/A self N/A N/A N/A output N/A StringIO N/A N/A remove_from_app_cache N/A self model_cls N/A N/A call_command dumpdata N/A str N/A self model_def stdout output commit False N/A N/A N/A output seek 0 N/A N/A N/A json load output N/A test_dump_mutable_models N/A N/A self N/A N/A N/A 
        Make sure mutable models instances are dumped when calling `dumpdata`.
         N/A N/A N/A self assertEqual N/A N/A self dump_model_data N/A N/A instance N/A N/A N/A N/A self model_cls objects create N/A N/A N/A self assertEqual N/A N/A self dump_model_data N/A N/A pk model fields N/A instance pk N/A N/A N/A str N/A self model_def lower N/A N/A N/A BytesWritter N/A object N/A __init__ N/A N/A self stream N/A N/A N/A N/A self _stream stream N/A __getattr__ N/A N/A self name N/A N/A N/A N/A getattr N/A self _stream name N/A write N/A N/A self data N/A N/A N/A N/A N/A N/A self _stream write N/A force_bytes data N/A N/A LoadDataTestCase N/A DataCommandTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super LoadDataTestCase self setUp N/A N/A self serializer N/A JSONSerializer N/A test_load_mutable_models N/A N/A self N/A N/A N/A 
        Makes sure mutable models instances are correctly loaded when calling
        `loaddata`.
         N/A instance N/A N/A self model_cls pk 1 N/A N/A remove_from_app_cache N/A self model_cls N/A N/A NamedTemporaryFile suffix .json stream N/A N/A N/A N/A N/A self serializer serialize N/A instance stream N/A BytesWritter stream N/A N/A N/A stream seek 0 N/A N/A call_command loaddata N/A stream name stdout N/A StringIO commit False N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A self model_cls objects filter pk N/A instance pk exists N/A test_invalid_model_idenfitier_raises N/A N/A self N/A N/A N/A 
        Makes sure an invalid model identifier raises the correct exception.
         N/A instance N/A N/A self model_cls pk 1 N/A N/A NamedTemporaryFile suffix .json stream N/A N/A N/A N/A N/A self serializer serialize N/A instance stream N/A BytesWritter stream N/A N/A N/A stream seek 0 N/A N/A N/A N/A self model_def delete N/A N/A N/A self assertRaisesMessage DeserializationError Invalid model identifier: 'mutant.model' N/A N/A N/A call_command loaddata N/A stream name stdout N/A StringIO N/A N/A