def test_get(app): main.Greeting(parent=main.guestbook_key('default_guestbook'), author='123', content='abc').put() response = app.get('/') # Let's check if the response is correct. assert response.status_int == 200
def test_get(app): main.Greeting( parent=main.guestbook_key('default_guestbook'), author='123', content='abc' ).put() response = app.get('/') # Let's check if the response is correct. assert response.status_int == 200
def test_img(app): greeting = main.Greeting(parent=main.guestbook_key('default_guestbook'), id=123) greeting.author = 'asdf' greeting.content = 'asdf' greeting.avatar = b'123' greeting.put() response = app.get('/img?img_id=%s' % greeting.key.urlsafe()) assert response.status_int == 200
def test_img(app): greeting = main.Greeting( parent=main.guestbook_key('default_guestbook'), id=123 ) greeting.author = 'asdf' greeting.content = 'asdf' greeting.avatar = b'123' greeting.put() response = app.get('/img?img_id=%s' % greeting.key.urlsafe()) assert response.status_int == 200