def save_leases(self):
        self.clock.advance(self.now)

        leases = Leases().acquire(
            datetime.fromtimestamp(self.now, tz=UTC), self.dataset1,
            self.node1, self.expires)
        leases = leases.acquire(
            datetime.fromtimestamp(self.now, tz=UTC), self.dataset2,
            self.node2, None)
        # Time has passed since leases were stored:
        self.time_passed = 3
        self.clock.advance(self.time_passed)

        return self.persistence_service.save(Deployment(leases=leases))
Adjusts application file paths to relative to the application.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/LeasesTestsMixin.save_leases--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/dev_appserver.py/PathAdjuster.AdjustPath