def teardown_method(self, method):
        """
        Default teardown method for all scripts. If run through Sauce Labs OnDemand, the job name, status and tags
        are updated. Also the video and server log are downloaded if so configured.
        """
        if hasattr(self, "config"):
            if self.cf["browsers"][self.cf["saunter"]["default_browser"]] in "sauce labs" and \
            not self.cf["browsers"][self.cf["saunter"]["default_browser"]]["sauce labs"]["ondemand"] \
            and self.cf["saunter"]["screenshots"]["on_finish"]:
                self.take_named_screenshot("final")

        if hasattr(self, "driver"):
            self.driver.quit()

        if hasattr(self.browser, 'proxy'):
            self.config['saunter']['proxies'].append(self.proxy)
dataset/ETHPy150Open Element-34/py.saunter/saunter/testcase/webdriver.py/SaunterTestCase.teardown_method/swapped operands of `in`