def testTarFilesInInputFiles(self): c1 = RunCommand() c1._create_tar_file([], {}) existing_files = TarCommand.get_existing_files() for f in existing_files: self.assertTrue(f in c1.get_input_files()) c2 = RunCommand() # this should not create a second tar file # since a "fresh" one exists c2._create_tar_file([], {}) existing_files = TarCommand.get_existing_files() for f in existing_files: self.assertTrue(f in c2.get_input_files())