def testExportsFilesFromRDFURNs(self):
    testfile1_path = self.CreateFile("testfile1")
    self.CreateDir("some_dir")
    testfile2_path = self.CreateFile("some_dir/testfile2")
    collection_path = self.client_id.Add("Results")
    self.CreateCollection(collection_path, [testfile1_path, testfile2_path])

    plugin = collection_files_plugin.CollectionFilesExportPlugin()
    parser = argparse.ArgumentParser()
    plugin.ConfigureArgParser(parser)

    with utils.TempDirectory() as tmpdir:
      plugin.Run(parser.parse_args(args=[
          "--path",
          str(collection_path),
          "--output",
          tmpdir]))

      expected_outdir = os.path.join(tmpdir, self.out.Path()[1:])
      self.assertTrue("testfile1" in os.listdir(expected_outdir))
      self.assertTrue("some_dir" in os.listdir(expected_outdir))
      self.assertTrue("testfile2" in os.listdir(
          os.path.join(expected_outdir, "some_dir")))
Get the style dictionary for matplotlib path objects
dataset/ETHPy150Open google/grr/grr/tools/export_plugins/collection_files_plugin_test.py/CollectionFilesExportPluginTest.testExportsFilesFromRDFURNs--crossover with--dataset/ETHPy150Open plotly/plotly.py/plotly/matplotlylib/mplexporter/utils.py/get_path_style