def test_config_pretty_file_paths_left(self):
     pretty_file_paths_target = [
         '0-blank/pretty/[Content_Types].xml',
         '0-blank/pretty/_rels',
         '0-blank/pretty/_rels/.rels',
         '0-blank/pretty/docProps',
         '0-blank/pretty/docProps/app.xml',
         '0-blank/pretty/docProps/core.xml',
         '0-blank/pretty/docProps/thumbnail.jpeg',
         '0-blank/pretty/word',
         '0-blank/pretty/word/_rels',
         '0-blank/pretty/word/_rels/document.xml.rels',
         '0-blank/pretty/word/document.xml',
         '0-blank/pretty/word/fontTable.xml',
         '0-blank/pretty/word/settings.xml',
         '0-blank/pretty/word/styles.xml',
         '0-blank/pretty/word/theme',
         '0-blank/pretty/word/theme/theme1.xml',
         '0-blank/pretty/word/webSettings.xml',
     ]
     pretty_file_paths_result = self.exp.pretties[0]
     self.assertItemsEqual(pretty_file_paths_target,
                           specimens_rel(pretty_file_paths_result))
 def test_config_ugly_file_paths_right(self):
     ugly_file_paths_target = [
         '1-singlepara/ugly/[Content_Types].xml',
         '1-singlepara/ugly/_rels',
         '1-singlepara/ugly/_rels/.rels',
         '1-singlepara/ugly/docProps',
         '1-singlepara/ugly/docProps/app.xml',
         '1-singlepara/ugly/docProps/core.xml',
         '1-singlepara/ugly/docProps/thumbnail.jpeg',
         '1-singlepara/ugly/word',
         '1-singlepara/ugly/word/_rels',
         '1-singlepara/ugly/word/_rels/document.xml.rels',
         '1-singlepara/ugly/word/document.xml',
         '1-singlepara/ugly/word/fontTable.xml',
         '1-singlepara/ugly/word/settings.xml',
         '1-singlepara/ugly/word/styles.xml',
         '1-singlepara/ugly/word/theme',
         '1-singlepara/ugly/word/theme/theme1.xml',
         '1-singlepara/ugly/word/webSettings.xml',
     ]
     ugly_file_paths_result = self.exp.uglies[1]
     self.assertItemsEqual(ugly_file_paths_target,
                           specimens_rel(ugly_file_paths_result))
 def test_config_pretty_dir_path_right(self):
     extract_dest_path_target = '1-singlepara/pretty'
     extract_dest_path_result = self.exp.pretty[1]
     self.assertEqual(extract_dest_path_target,
                      specimens_rel(extract_dest_path_result))
 def test_config_pretty_dir_path_left(self):
     extract_dest_path_target = '0-blank/pretty'
     extract_dest_path_result = self.exp.pretty[0]
     self.assertEqual(extract_dest_path_target,
                      specimens_rel(extract_dest_path_result))
 def test_config_docx_path_right(self):
     docx_path_target = '1-singlepara/1-singlepara.docx'
     docx_path_result = self.exp.docx[1]
     self.assertEqual(docx_path_target, specimens_rel(docx_path_result))
 def test_config_docx_path_left(self):
     docx_path_target = '0-blank/0-blank.docx'
     docx_path_result = self.exp.docx[0]
     self.assertEqual(docx_path_target, specimens_rel(docx_path_result))
 def test_prettify_preserves_dir_structure_right(self):
     self.exp.prettify_right()
     for path in self.exp.pretties[1]:
         self.assertTrue(
             os.path.isfile(path) or os.path.isdir(path),
             "Couldn't find dir or file at {}".format(specimens_rel(path)))