

def test_is_active(self):
    with self.app.app_context():
        user = User.create(email='r@rdegges.com', password='woot1LoveCookies!', given_name='Randall', surname='Degges')
        self.assertEqual(user.is_active(), True)
        user.status = User.STATUS_DISABLED
        self.assertEqual(user.is_active(), False)
        user.status = User.STATUS_UNVERIFIED
        self.assertEqual(user.is_active(), False)

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