Lines Matching refs:self
118 def setUp(self): argument
120 self.test_dir = tempfile.mkdtemp()
121 self.config_file = os.path.join(self.test_dir, TEST_MODULE + '.config')
122 self.manifest_file = os.path.join(self.test_dir, 'AndroidManifest.xml')
124 def tearDown(self): argument
126 shutil.rmtree(self.test_dir, ignore_errors=True)
128 def testInvalidManifest(self): argument
131 with open(self.manifest_file, 'w') as f:
134 argv = [self.config_file,
135 self.manifest_file,
139 with open(self.config_file) as config_file:
141 self.assertEqual(config_file.read(), empty_config.read())
143 def testCreateJUnitTestConfig(self): argument
146 with open(self.manifest_file, 'w') as f:
149 argv = [self.config_file,
150 self.manifest_file,
154 with open(self.config_file) as config_file:
155 self.assertEqual(config_file.read(), EXPECTED_JUNIT_TEST_CONFIG)
157 def testCreateInstrumentationTestConfig(self): argument
160 with open(self.manifest_file, 'w') as f:
163 argv = [self.config_file,
164 self.manifest_file,
168 with open(self.config_file) as config_file:
169 self.assertEqual(