def test_create(self): uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-") uut.create() expected_checkout_path = join(self.checkouts_dir, "-project-", "checkout") assert_equals(expected_checkout_path, uut.checkout_dir) assert exists(join(expected_checkout_path, "some.file"))
def test_delete(self): uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-") uut.create() uut.delete() assert not exists(uut.checkout_dir)
def test_not_exists_empty(self): uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-") os.makedirs(uut.checkout_dir) assert not uut.exists()
def test_exists_after_create(self): uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-") uut.create() assert uut.exists()
def test_not_exists(self): uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-") assert not uut.exists()