示例#1
0
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")
示例#2
0
def test_constructor(app):
    from aura.models import User
    user = User(username="******", password="******")
    assert user.username == "user"
    assert user.password_is("pass")