Beispiel #1
0
def load_user(id):
    return User.get_by_id(int(id))
Beispiel #2
0
def load_user(id):
    return User.get_by_id(int(id))
    def test_get_by_id(self):
        user = User('foo', '*****@*****.**')
        user.save()

        retrieved = User.get_by_id(user.id)
        assert retrieved == user
Beispiel #4
0
    def test_get_by_id(self):
        user = User('foo', '*****@*****.**')
        user.save()

        retrieved = User.get_by_id(user.id)
        assert retrieved == user