~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/tests/servers.py

[r=wgrant][no-qa] Drop hosted_branches_root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
class CodeHostingTac(TacTestSetup):
60
60
 
61
 
    def __init__(self, hosted_area, mirrored_area):
 
61
    def __init__(self, mirrored_area):
62
62
        super(CodeHostingTac, self).__init__()
63
 
        # The hosted area.
64
 
        self._hosted_root = hosted_area
65
63
        # The mirrored area.
66
64
        self._mirror_root = mirrored_area
67
65
        # Where the pidfile, logfile etc will go.
69
67
 
70
68
    def clear(self):
71
69
        """Clear the branch areas."""
72
 
        if os.path.isdir(self._hosted_root):
73
 
            shutil.rmtree(self._hosted_root)
74
 
        os.makedirs(self._hosted_root, 0700)
75
70
        if os.path.isdir(self._mirror_root):
76
71
            shutil.rmtree(self._mirror_root)
77
72
        os.makedirs(self._mirror_root, 0700)
80
75
        self.clear()
81
76
 
82
77
    def tearDownRoot(self):
83
 
        shutil.rmtree(self._hosted_root)
84
78
        shutil.rmtree(self._server_root)
85
79
 
86
80
    @property