Ejemplo n.º 1
0
 def sigchain_fileobj_get(self, local):
     u"""Return chain, local if local is true with filenames added"""
     if local:
         chain = collections.SignatureChain(1, globals.archive_dir_path)
         for filename in local_sigchain_filename_list:
             assert chain.add_filename(filename)
     else:
         chain = collections.SignatureChain(None, self.real_backend)
         for filename in remote_sigchain_filename_list:
             assert chain.add_filename(filename)
     return chain
Ejemplo n.º 2
0
 def test_sig_chain(self):
     u"""Test a single signature chain"""
     chain = collections.SignatureChain(1, globals.archive_dir_path)
     for filename in local_sigchain_filename_list:
         assert chain.add_filename(filename)
     assert not chain.add_filename(
         b"duplicity-new-signatures.2002-08-18T00:04:30-07:00.to.2002-08-20T00:00:00-07:00.sigtar.gpg"
     )