Example #1
0
    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"))
Example #2
0
 def test_delete(self):
     uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-")
     uut.create()
     uut.delete()
     assert not exists(uut.checkout_dir)
Example #3
0
 def test_not_exists_empty(self):
     uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-")
     os.makedirs(uut.checkout_dir)
     assert not uut.exists()
Example #4
0
 def test_exists_after_create(self):
     uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-")
     uut.create()
     assert uut.exists()
Example #5
0
 def test_not_exists(self):
     uut = LocalProjectCheckout(self.local_url, self.checkouts_dir, "-project-")
     assert not uut.exists()