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

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