Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad Str BinOpAdd Call NameLoad Str Num body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad Str BinOpAdd Call NameLoad Str Num body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr NameLoad
N/A N/A os.path N/A unittest N/A tempfile N/A shutil N/A sys N/A zipfile resync.dump Dump DumpError resync.resource_list ResourceList resync.change_list ChangeList resync.resource Resource resync.resource_dump_manifest ResourceDumpManifest resync.change_dump_manifest ChangeDumpManifest TestDump N/A N/A unittest TestCase N/A N/A _tmpdir None setUpClass N/A N/A cls N/A N/A N/A N/A cls _tmpdir N/A N/A tempfile mkdtemp N/A N/A N/A N/A N/A os path isdir N/A cls _tmpdir N/A N/A N/A Exception Failed to create tempdir to use for dump tests N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A N/A os path isdir N/A cls _tmpdir N/A N/A N/A Exception N/A Ooops, no tempdir (%s) to clean up? tmpdir N/A N/A N/A shutil rmtree N/A cls _tmpdir N/A classmethod tmpdir N/A N/A self N/A N/A N/A N/A N/A N/A self _tmpdir N/A N/A sys version_info N/A 2 7 N/A N/A N/A N/A self setUpClass N/A N/A self _tmpdir N/A property test00_dump_zip_resource_list N/A N/A self N/A N/A N/A rl N/A ResourceDumpManifest N/A N/A N/A rl add N/A Resource http://ex.org/a length 7 path tests/testdata/a N/A N/A N/A rl add N/A Resource http://ex.org/b length 21 path tests/testdata/b N/A d N/A Dump N/A zipf N/A N/A N/A os path join N/A self tmpdir test00_dump.zip N/A N/A N/A d write_zip resources rl dumpfile zipf N/A N/A N/A self assertTrue N/A N/A N/A os path exists zipf N/A N/A N/A self assertTrue N/A N/A zipfile is_zipfile zipf N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A len N/A N/A zo namelist 3 N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A test01_dump_zip_change_list N/A N/A self N/A N/A N/A cl N/A ChangeDumpManifest N/A N/A N/A cl add N/A Resource http://ex.org/a length 7 path tests/testdata/a change updated N/A N/A N/A cl add N/A Resource http://ex.org/b length 21 path tests/testdata/b change updated N/A d N/A Dump N/A zipf N/A N/A N/A os path join N/A self tmpdir test01_dump.zip N/A N/A N/A d write_zip cl zipf N/A N/A N/A self assertTrue N/A N/A N/A os path exists zipf N/A N/A N/A self assertTrue N/A N/A zipfile is_zipfile zipf N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A len N/A N/A zo namelist 3 N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A test02_dump_check_files N/A N/A self N/A N/A N/A cl N/A ChangeList N/A N/A N/A cl add N/A Resource http://ex.org/a length 7 path tests/testdata/a change updated N/A N/A N/A cl add N/A Resource http://ex.org/b length 21 path tests/testdata/b change updated N/A d N/A Dump resources cl N/A N/A N/A self assertTrue N/A N/A d check_files N/A N/A N/A self assertEqual N/A d total_size 28 N/A test03_dump_multi_file_max_size N/A N/A self N/A N/A N/A rl N/A ResourceList N/A letter N/A map chr N/A range N/A ord a N/A N/A ord l 1 N/A N/A uri N/A http://ex.org/%s letter N/A fname N/A tests/testdata/a_to_z/%s letter N/A N/A N/A rl add N/A Resource uri path fname N/A N/A N/A self assertEqual N/A len rl 12 N/A d2 N/A Dump rl N/A tmpbase N/A N/A N/A os path join N/A self tmpdir test03_ N/A N/A d2 max_files 4 N/A n N/A N/A d2 write tmpbase N/A N/A N/A self assertEqual n 3 expect to write 3 dump files N/A N/A N/A self assertTrue N/A N/A N/A os path isfile N/A tmpbase 00000.zip N/A N/A N/A self assertTrue N/A N/A N/A os path isfile N/A tmpbase 00001.zip N/A N/A N/A self assertTrue N/A N/A N/A os path isfile N/A tmpbase 00002.zip N/A zipf N/A tmpbase 00000.zip N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A N/A zo namelist N/A manifest.xml a b c d N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo a file_size 9 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo b file_size 1116 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo c file_size 32 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo d file_size 13 N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A zipf N/A tmpbase 00001.zip N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A N/A zo namelist N/A manifest.xml e f g h N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A zipf N/A tmpbase 00002.zip N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A N/A zo namelist N/A manifest.xml i j k l N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A test04_dump_multi_file_max_size N/A N/A self N/A N/A N/A rl N/A ResourceList N/A letter N/A map chr N/A range N/A ord a N/A N/A ord l 1 N/A N/A uri N/A http://ex.org/%s letter N/A fname N/A tests/testdata/a_to_z/%s letter N/A N/A N/A rl add N/A Resource uri path fname N/A N/A N/A self assertEqual N/A len rl 12 N/A d2 N/A Dump rl N/A tmpbase N/A N/A N/A os path join N/A self tmpdir test0f_ N/A N/A d2 max_size 2000 N/A n N/A N/A d2 write tmpbase N/A N/A N/A self assertEqual n 2 expect to write 2 dump files N/A N/A N/A self assertTrue N/A N/A N/A os path isfile N/A tmpbase 00000.zip N/A N/A N/A self assertTrue N/A N/A N/A os path isfile N/A tmpbase 00001.zip N/A zipf N/A tmpbase 00000.zip N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A N/A zo namelist N/A manifest.xml a b c d e f N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo a file_size 9 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo b file_size 1116 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo c file_size 32 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo d file_size 13 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo e file_size 20 N/A N/A N/A self assertEqual N/A N/A N/A zo getinfo f file_size 1625 N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A zipf N/A tmpbase 00001.zip N/A zo N/A N/A zipfile ZipFile zipf r N/A N/A N/A self assertEqual N/A N/A zo namelist N/A manifest.xml g h i j k l N/A N/A N/A zo close N/A N/A N/A os unlink zipf N/A test10_no_path N/A N/A self N/A N/A N/A rl N/A ResourceList N/A N/A N/A rl add N/A Resource http://ex.org/a length 7 path tests/testdata/a N/A N/A N/A rl add N/A Resource http://ex.org/b length 21 N/A d N/A Dump rl N/A N/A N/A self assertRaises DumpError N/A d check_files N/A test11_bad_size N/A N/A self N/A N/A N/A rl N/A ResourceList N/A N/A N/A rl add N/A Resource http://ex.org/a length 9999 path tests/testdata/a N/A d N/A Dump rl N/A N/A N/A self assertTrue N/A N/A d check_files check_length False N/A N/A N/A self assertRaises DumpError N/A d check_files N/A test10_no_path N/A N/A self N/A N/A N/A rl N/A ResourceList N/A N/A N/A rl add N/A Resource http://ex.org/a length 7 path tests/testdata/a N/A N/A N/A rl add N/A Resource http://ex.org/b length 21 N/A d N/A Dump rl N/A N/A N/A self assertRaises DumpError N/A d check_files N/A test11_bad_size N/A N/A self N/A N/A N/A rl N/A ResourceList N/A N/A N/A rl add N/A Resource http://ex.org/a length 9999 path tests/testdata/a N/A d N/A Dump rl N/A N/A N/A self assertTrue N/A N/A d check_files check_length False N/A N/A N/A self assertRaises DumpError N/A d check_files N/A N/A N/A N/A __name__ __main__ N/A N/A suite N/A N/A N/A unittest defaultTestLoader loadTestsFromTestCase TestDump N/A N/A N/A N/A N/A unittest TextTestRunner verbosity 2 run suite