Example #1
0
 def test_stop_update(self):
     if os.path.exists(self.stop_update):
         os.remove(self.stop_update)
     b = DNSBuilder(STAGE_DIR=self.stage_dir,
                    PROD_DIR=self.prod_dir,
                    LOCK_FILE=self.lock_file,
                    STOP_UPDATE_FILE=self.stop_update)
     open(self.stop_update, 'w+').close()
     try:
         self.assertTrue(b.stop_update_exists())
     finally:
         os.remove(self.stop_update)
Example #2
0
 def test_stop_update(self):
     if os.path.exists(self.stop_update):
         os.remove(self.stop_update)
     b = DNSBuilder(
         STAGE_DIR=self.stage_dir,
         PROD_DIR=self.prod_dir,
         LOCK_FILE=self.lock_file,
         STOP_UPDATE_FILE=self.stop_update,
     )
     open(self.stop_update, "w+").close()
     try:
         self.assertTrue(b.stop_update_exists())
     finally:
         os.remove(self.stop_update)