def test_setter_properties(app): from aura.models import User user = User(username="******", password="******") user.username = "******" assert user.username == "other" user.password = "******" assert user.password_is("otherpass")
def test_constructor(app): from aura.models import User user = User(username="******", password="******") assert user.username == "user" assert user.password_is("pass")