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)
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)