Lines Matching refs:self
22 def setUp(self): argument
23 self.optional_arguments = {
31 def test_parse_arguments_smoke(self): argument
33 for key, value in self.optional_arguments.items():
39 self.assertEqual("source_directory", args.src_dir)
40 self.assertEqual("output_file", args.output_file)
41 self.assertEqual("ext4", args.ext_variant)
42 self.assertEqual("data", args.mount_point)
43 self.assertEqual("8192", args.fs_size)
45 self.assertFalse(args.android_sparse)
46 self.assertEqual("10", args.journal_size)
47 self.assertEqual("1230768000.0", args.timestamp)
48 self.assertEqual("fs_config", args.fs_config)
49 self.assertEqual("product_out", args.product_out)
50 self.assertEqual("block_list_file", args.block_list_file)
51 self.assertEqual("base_alloc_file_in", args.base_alloc_file_in)
52 self.assertEqual("base_alloc_file_out", args.base_alloc_file_out)
53 self.assertEqual("label", args.label)
54 self.assertEqual("20", args.inodes)
55 self.assertEqual("30", args.reserved_percent)
56 self.assertEqual("8192", args.flash_erase_block_size)
57 self.assertEqual("16384", args.flash_logical_block_size)
58 self.assertEqual("mke2fs_uuid", args.mke2fs_uuid)
59 self.assertEqual("mke2fs_hash_seed", args.mke2fs_hash_seed)
60 self.assertTrue(args.share_dup_blocks)
62 def test_parse_arguments_with_filecontext(self): argument
65 for key, value in self.optional_arguments.items():
71 self.assertEqual("file_contexts.bin", args.file_contexts)
73 self.assertEqual("source_directory", args.src_dir)
74 self.assertEqual("output_file", args.output_file)
75 self.assertEqual("ext4", args.ext_variant)
76 self.assertEqual("data", args.mount_point)
77 self.assertEqual("8192", args.fs_size)
79 self.assertTrue(args.android_sparse)
80 self.assertEqual("10", args.journal_size)
81 self.assertEqual("1230768000.0", args.timestamp)
82 self.assertEqual("fs_config", args.fs_config)
83 self.assertEqual("product_out", args.product_out)
84 self.assertEqual("block_list_file", args.block_list_file)
85 self.assertEqual("base_alloc_file_in", args.base_alloc_file_in)
86 self.assertEqual("base_alloc_file_out", args.base_alloc_file_out)
87 self.assertEqual("label", args.label)
88 self.assertEqual("20", args.inodes)
89 self.assertEqual("30", args.reserved_percent)
90 self.assertEqual("8192", args.flash_erase_block_size)
91 self.assertEqual("16384", args.flash_logical_block_size)
92 self.assertEqual("mke2fs_uuid", args.mke2fs_uuid)
93 self.assertEqual("mke2fs_hash_seed", args.mke2fs_hash_seed)
94 self.assertTrue(args.share_dup_blocks)
96 def test_parse_arguments_not_enough_arguments(self): argument
98 for key, value in self.optional_arguments.items():
101 with self.assertRaises(SystemExit):
104 def test_construct_e2fs_opts_smoke(self): argument
107 for key, value in self.optional_arguments.items():
132 self.assertEqual(' '.join(mke2fs_cmd), ' '.join(expected_mke2fs_cmd))
134 self.assertEqual(' '.join(e2fsdroid_cmd),