

def test_from_login(self):
    with self.app.app_context():
        user = User.create(email='r@rdegges.com', password='woot1LoveCookies!', given_name='Randall', surname='Degges', username='rdegges')
        original_href = user.href
        user = User.from_login('r@rdegges.com', 'woot1LoveCookies!')
        self.assertEqual(user.href, original_href)
        user = User.from_login('rdegges', 'woot1LoveCookies!')
        self.assertEqual(user.href, original_href)

dataset/ETHPy150Open stormpath/stormpath-flask/tests/test_models.py TestUser.test_from_login/original