예제 #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))