# Path: duplicity/globals.py

# 
# Path: duplicity/gpg.py
# class GPGError(Exception):
# class GPGProfile:
# class GPGFile:
#     class FileCounted:
#     def __init__(self, passphrase = None, sign_key = None,
#                  recipients = None):
#     def __init__(self, encrypt, encrypt_path, profile):
#     def read(self, length = -1):
#     def write(self, buf):
#     def gpg_failed(self):
#     def close(self):
#     def set_signature(self):
#     def get_signature(self):
# def GPGWriteFile(block_iter, filename, profile,
#                  size = 200 * 1024 * 1024,
#                  max_footer_size = 16 * 1024):
#     def top_off(bytes, file):
#     def get_current_size():
# def GzipWriteFile(block_iter, filename,
#                   size = 200 * 1024 * 1024,
#                   max_footer_size = 16 * 1024):
#         def __init__(self, fileobj):
#         def write(self, buf):
#         def close(self):
# def get_hash(hash, path, hex = 1):


import config
import sys, unittest, os
import duplicity.backend
    import duplicity.backends.giobackend
from duplicity.errors import * #@UnusedWildImport
from duplicity import path, file_naming, dup_time, globals, gpg
        if not self.url_string:
            print "No URL for test %s...skipping... " % self.my_test_id,
            return 0
        config.set_environ("FTP_PASSWORD", self.password)
        self.try_fileobj_ops(duplicity.backend.get_backend(self.url_string))

    def try_basic(self, backend):
        """Try basic operations with given backend.

        Requires backend be empty at first, and all operations are
        allowed.

        """
        def cmp_list(l):
            """Assert that backend.list is same as l"""
            blist = backend.list()
            blist.sort()
            l.sort()
            assert blist == l, \
                   ("Got list: %s\nWanted: %s\n" % (repr(blist), repr(l)))

        # Identify test that's running
        print self.my_test_id, "... ",

        assert not os.system("rm -rf testfiles/backend_tmp")
        assert not os.system("mkdir testfiles/backend_tmp")

        regpath = path.Path("testfiles/various_file_types/regular_file")
        normal_file = "testfile"
        colonfile = ("file%swith.%scolons_-and%s%setc" %

# Path: duplicity/globals.py

# 
# Path: duplicity/gpg.py
# class GPGError(Exception):
# class GPGProfile:
# class GPGFile:
#     class FileCounted:
#     def __init__(self, passphrase = None, sign_key = None,
#                  recipients = None):
#     def __init__(self, encrypt, encrypt_path, profile):
#     def read(self, length = -1):
#     def write(self, buf):
#     def gpg_failed(self):
#     def close(self):
#     def set_signature(self):
#     def get_signature(self):
# def GPGWriteFile(block_iter, filename, profile,
#                  size = 200 * 1024 * 1024,
#                  max_footer_size = 16 * 1024):
#     def top_off(bytes, file):
#     def get_current_size():
# def GzipWriteFile(block_iter, filename,
#                   size = 200 * 1024 * 1024,
#                   max_footer_size = 16 * 1024):
#         def __init__(self, fileobj):
#         def write(self, buf):
#         def close(self):
# def get_hash(hash, path, hex = 1):


# Path: testing/backendtest.py
import config
import sys, unittest, os
import duplicity.backend
    import duplicity.backends.giobackend
from duplicity.errors import * #@UnusedWildImport
from duplicity import path, file_naming, dup_time, globals, gpg

        if not self.url_string:
            print "No URL for test %s...skipping... " % self.my_test_id,
            return 0
        config.set_environ("FTP_PASSWORD", self.password)
        self.try_fileobj_ops(duplicity.backend.get_backend(self.url_string))

    def try_basic(self, backend):
        """Try basic operations with given backend.

        Requires backend be empty at first, and all operations are
        allowed.

        """
        def cmp_list(l):
            """Assert that backend.list is same as l"""
            blist = backend.list()
            blist.sort()
            l.sort()
            assert blist == l, \
                   ("Got list: %s\nWanted: %s\n" % (repr(blist), repr(l)))

        # Identify test that's running
        print self.my_test_id, "... ",

        assert not os.system("rm -rf testfiles/backend_tmp")
        assert not os.system("mkdir testfiles/backend_tmp")

        regpath = path.Path("testfiles/various_file_types/regular_file")
        normal_file = "testfile"
        colonfile = ("file%swith.%scolons_-and%s%setc" %

                     ((globals.time_separator,) * 4))