Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Expr Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list decorator_list Call NameLoad Str Dict Str NameLoad Call NameLoad Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad Expr Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call NameLoad ListLoad Str Str Expr Call NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call NameLoad ListLoad Str Str Str Expr Call NameLoad ListLoad Str Str Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Call NameLoad ListLoad Str Str Str Expr Call NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults vararg body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call NameLoad ListLoad Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad ListLoad Str Str Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Call NameLoad ListLoad Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad ListLoad Str Str Str decorator_list decorator_list Call NameLoad Str Dict Str NameLoad Call NameLoad Str Str Call NameLoad Str keyword Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list decorator_list Call NameLoad Str Str
N/A N/A os mock patch django.test TestCase django.core.management execute_from_command_line django.utils.six BytesIO django.utils six dbbackup.tests.utils TEST_DATABASE HANDLED_FILES clean_gpg_keys add_public_gpg add_private_gpg DbBackupCommandTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A HANDLED_FILES clean N/A N/A add_public_gpg N/A N/A N/A N/A open N/A TEST_DATABASE N/A NAME a close N/A tearDown N/A N/A self N/A N/A N/A N/A N/A os remove N/A TEST_DATABASE N/A NAME N/A N/A clean_gpg_keys N/A test_encrypt N/A N/A self N/A N/A N/A argv N/A dbbackup --encrypt N/A N/A execute_from_command_line argv N/A N/A N/A self assertEqual 1 N/A len N/A HANDLED_FILES N/A written_files N/A N/A filename outputfile N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A N/A N/A self assertTrue N/A N/A filename endswith .gpg N/A outputfile N/A N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A 1 N/A N/A N/A outputfile seek 0 N/A N/A N/A self assertTrue N/A N/A N/A N/A outputfile read startswith -----BEGIN PGP MESSAGE----- N/A test_compress N/A N/A self N/A N/A N/A argv N/A dbbackup --compress N/A N/A execute_from_command_line argv N/A N/A N/A self assertEqual 1 N/A len N/A HANDLED_FILES N/A written_files N/A N/A filename outputfile N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A N/A N/A self assertTrue N/A N/A filename endswith .gz N/A test_compress_and_encrypt N/A N/A self N/A N/A N/A argv N/A dbbackup --compress --encrypt N/A N/A execute_from_command_line argv N/A N/A N/A self assertEqual 1 N/A len N/A HANDLED_FILES N/A written_files N/A N/A filename outputfile N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A N/A N/A self assertTrue N/A N/A filename endswith .gz.gpg N/A outputfile N/A N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A 1 N/A N/A N/A outputfile seek 0 N/A N/A N/A self assertTrue N/A N/A N/A N/A outputfile read startswith -----BEGIN PGP MESSAGE----- N/A N/A N/A patch django.conf.settings.DATABASES N/A default TEST_DATABASE N/A patch dbbackup.settings.STORAGE dbbackup.tests.utils DbRestoreCommandTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A HANDLED_FILES clean N/A N/A add_public_gpg N/A N/A add_private_gpg N/A N/A N/A N/A open N/A TEST_DATABASE N/A NAME a close N/A tearDown N/A N/A self N/A N/A N/A N/A N/A os remove N/A TEST_DATABASE N/A NAME N/A N/A clean_gpg_keys N/A test_restore N/A N/A self N/A args N/A N/A N/A execute_from_command_line N/A dbbackup N/A N/A execute_from_command_line N/A dbrestore N/A test_encrypted N/A N/A self N/A args N/A N/A N/A execute_from_command_line N/A dbbackup --encrypt N/A N/A execute_from_command_line N/A dbrestore --decrypt N/A N/A patch dbbackup.utils.getpass return_value None test_compressed N/A N/A self N/A args N/A N/A N/A execute_from_command_line N/A dbbackup --compress N/A N/A execute_from_command_line N/A dbrestore --uncompress N/A test_no_backup_available N/A N/A self N/A args N/A N/A N/A N/A self assertRaises SystemExit N/A N/A N/A execute_from_command_line N/A dbrestore N/A test_available_but_not_encrypted N/A N/A self N/A args N/A N/A N/A execute_from_command_line N/A dbbackup N/A N/A N/A self assertRaises SystemExit N/A N/A N/A execute_from_command_line N/A dbrestore --decrypt N/A N/A patch dbbackup.utils.getpass return_value None test_available_but_not_compressed N/A N/A self N/A args N/A N/A N/A execute_from_command_line N/A dbbackup N/A N/A N/A self assertRaises SystemExit N/A N/A N/A execute_from_command_line N/A dbrestore --uncompress N/A N/A N/A patch django.conf.settings.DATABASES N/A default TEST_DATABASE N/A patch dbbackup.settings.STORAGE dbbackup.tests.utils N/A patch dbbackup.management.commands.dbrestore.input return_value y MediaBackupCommandTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A HANDLED_FILES clean N/A N/A add_public_gpg N/A tearDown N/A N/A self N/A N/A N/A N/A clean_gpg_keys N/A test_encrypt N/A N/A self N/A N/A N/A argv N/A mediabackup --encrypt N/A N/A execute_from_command_line argv N/A N/A N/A self assertEqual 1 N/A len N/A HANDLED_FILES N/A written_files N/A N/A filename outputfile N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A N/A N/A self assertTrue N/A .gpg filename N/A outputfile N/A N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A 1 N/A N/A N/A outputfile seek 0 N/A N/A N/A self assertTrue N/A N/A N/A N/A outputfile read startswith -----BEGIN PGP MESSAGE----- N/A test_no_compress N/A N/A self N/A N/A N/A argv N/A mediabackup --no-compress N/A N/A execute_from_command_line argv N/A N/A N/A self assertEqual 1 N/A len N/A HANDLED_FILES N/A written_files N/A N/A filename outputfile N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A N/A N/A self assertFalse N/A .gz filename N/A test_no_compress_and_encrypt N/A N/A self N/A N/A N/A argv N/A mediabackup --no-compress --encrypt N/A N/A execute_from_command_line argv N/A N/A N/A self assertEqual 1 N/A len N/A HANDLED_FILES N/A written_files N/A N/A filename outputfile N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A N/A N/A self assertTrue N/A .gpg filename N/A N/A N/A self assertFalse N/A .gz filename N/A outputfile N/A N/A N/A HANDLED_FILES N/A written_files N/A 0 N/A 1 N/A N/A N/A outputfile seek 0 N/A N/A N/A self assertTrue N/A N/A N/A N/A outputfile read startswith -----BEGIN PGP MESSAGE----- N/A N/A N/A patch dbbackup.settings.STORAGE dbbackup.tests.utils