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_exists_after_create(self):
     uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-")
     uut.create()
     assert uut.exists()