def testGenerateTarCopyCommand(self):
    with tempfile.TemporaryDirectory() as path:
      d = directory.DirectoryArtifact(path, method='tar', compress=False)
      command = d._TAR_COMMAND
      command.append(path)
      self.assertEqual(d._GenerateCopyCommand(), command)