def test_model_with_user(testbed):
    user = users.User(email='*****@*****.**', _user_id='123')
    item = snippets.ModelWithUser(user_id=user.user_id())
    item.put()
    assert snippets.ModelWithUser.get_by_user(user) == item
Exemple #2
0
def test_model_with_user(testbed):
    user = users.User(email='*****@*****.**', _user_id='123')
    item = snippets.ModelWithUser(user_id=user.user_id())
    item.put()
    if snippets.ModelWithUser.get_by_user(user) != item:
        raise AssertionError