def testDeploy(self): self.testDeployInit() main(["deploy", self.folder]) self.assertFalse(os.path.exists(self.tmp_folder)) self.assertFalse(os.path.exists(self.oldtargetfile)) self.assertFalse(os.path.exists(self.oldtargetdir)) self.assertTrue(os.path.isfile(self.newtargetfile))
def testDeployInit(self): main(["deploy", "--init", self.folder]) self.assertTrue(os.path.isdir(self.live_folder)) self.assertTrue(os.path.islink(self.folder)) self.assertTrue(os.path.isfile(self.oldtargetfile)) self.assertTrue(os.path.isdir(self.oldtargetdir))