コード例 #1
0
    def setUp(self):
        self.service = DockerService({
            'host':
            'localhost',
            'mount_path':
            '/tmp/docker-xylem-test',
            'old_mount_paths': [
                '/some/old/path', '/another/random/old/path',
                '/just/one/more/wont/hurt'
            ]
        })

        self.service.xylem_request = lambda *a: defer.maybeDeferred(
            self.xylem_request, *a)

        self.service._fork = self.fork