def sign_in(self):
    authenticity_token = self.get_authenticity_token()
    post_data = {'utf8': '✓', 'authenticity_token': authenticity_token, 'return': '', 'login[username]': self.login, 'login[password]': self.password, 'commit': 'Log In'}
    res = self.client._post(url=_SIGNIN_URL, post_data=post_data, expected_status_code=302, allow_redirects=False)
    return res
def sign_in(self):
    authenticity_token = self.get_authenticity_token()
    post_data = {'utf8': '✓', 'authenticity_token': authenticity_token, 'return': , 'login[username]': self.login, 'login[password]': self.password, 'commit': 'Log In'}
    res = self.client._post(url=_SIGNIN_URL, post_data=post_data, expected_status_code=302, allow_redirects=False)
    return res