def METHOD_NAME(self, username, password):
    self.open("/login/?next=/")
    self.selenium.find_element(By.NAME, "username").send_keys(username)
    self.selenium.find_element(By.NAME, "password").send_keys(password)
    self.selenium.find_element(By.CSS_SELECTOR, "input[type=submit]").click()