# Path: duplicity/globals.py



import config
import sys, unittest, types
from duplicity import manifest
from duplicity import globals
from duplicity import path
    def test_contains(self):
        """Test to see if contains() works"""
        vi = manifest.VolumeInfo()
        vi.set_info(1, ("1", "2"), None, ("1", "3"), None)
        assert vi.contains(("1",), recursive = 1)
        assert not vi.contains(("1",), recursive = 0)

        vi2 = manifest.VolumeInfo()
        vi2.set_info(1, ("A",), None, ("Z",), None)
        assert vi2.contains(("M",), recursive = 1)
        assert vi2.contains(("M",), recursive = 0)

        vi3 = manifest.VolumeInfo()
        vi3.set_info(1, ("A",), None, ("Z",), None)
        assert not vi3.contains(("3",), recursive = 1)
        assert not vi3.contains(("3",), recursive = 0)


class ManifestTest(unittest.TestCase):
    """Test Manifest class"""
    def test_basic(self):
        vi1 = manifest.VolumeInfo()
        vi1.set_info(3, ("hello",), None, (), None)
        vi2 = manifest.VolumeInfo()
        vi2.set_info(4, ("goodbye", "there"), None, ("aoeusht",), None)
        vi3 = manifest.VolumeInfo()
        vi3.set_info(34, (), None, (), None)
        m = manifest.Manifest()
        for vi in [vi1, vi2, vi3]: m.add_volume_info(vi)


# Path: duplicity/globals.py



# Path: testing/manifesttest.py
import config
import sys, unittest, types
from duplicity import manifest
from duplicity import globals
from duplicity import path

    def test_contains(self):
        """Test to see if contains() works"""
        vi = manifest.VolumeInfo()
        vi.set_info(1, ("1", "2"), None, ("1", "3"), None)
        assert vi.contains(("1",), recursive = 1)
        assert not vi.contains(("1",), recursive = 0)

        vi2 = manifest.VolumeInfo()
        vi2.set_info(1, ("A",), None, ("Z",), None)
        assert vi2.contains(("M",), recursive = 1)
        assert vi2.contains(("M",), recursive = 0)

        vi3 = manifest.VolumeInfo()
        vi3.set_info(1, ("A",), None, ("Z",), None)
        assert not vi3.contains(("3",), recursive = 1)
        assert not vi3.contains(("3",), recursive = 0)


class ManifestTest(unittest.TestCase):
    """Test Manifest class"""
    def test_basic(self):
        vi1 = manifest.VolumeInfo()
        vi1.set_info(3, ("hello",), None, (), None)
        vi2 = manifest.VolumeInfo()
        vi2.set_info(4, ("goodbye", "there"), None, ("aoeusht",), None)
        vi3 = manifest.VolumeInfo()
        vi3.set_info(34, (), None, (), None)
        m = manifest.Manifest()
        for vi in [vi1, vi2, vi3]: m.add_volume_info(vi)


        globals.local_path = path.Path("Foobar")