def login(self, url, username, password):
        
        try:
            f = self.get_and_post_form(
                url, dict(
                    username=username,
                    password=password,
                )
            )
        except Exception:
            return False
        
        if f.geturl() != url:
            # redirected (hopefully) to the success page
            return True
        else:
            return False
Log in at the given URL.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/tests/client.py/Browser.login