def test_xml(self): # Test when a file is already present that the index is increasing # accordingly. open(os.path.join(self.tmpdir, 'a.xml'), 'w').close() open(os.path.join(self.tmpdir, 'a_0.xml'), 'w').close() open(os.path.join(self.tmpdir, 'a_1.xml'), 'w').close() self.assertEqual( os.path.join(self.tmpdir, 'a_2.xml'), run_test_cases.gen_gtest_output_dir(self.tmpdir, 'xml:a.xml'))
def test_xml_default(self): self.assertEqual( os.path.join(self.tmpdir, 'test_detail.xml'), run_test_cases.gen_gtest_output_dir(self.tmpdir, 'xml'))