示例#1
0
 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))
示例#2
0
 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))
示例#3
0
 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))
示例#4
0
 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))