def test_is_deactivated(self): user = User(password='******', role='administrator', state='deactivated', id='uid') result = user.is_admin() assert result is False
def test_is_not_admin(self): user = User(password='******', role='user', id='uid') result = user.is_admin() assert result is False
def test_is_admin(self): user = User(password='******', role='administrator', id='uid') result = user.is_admin() assert result is True