11 lines
204 B
Python
11 lines
204 B
Python
import main
|
|
|
|
|
|
def test_index():
|
|
main.app.testing = True
|
|
client = main.app.test_client()
|
|
|
|
r = client.get('/')
|
|
assert r.status_code == 200
|
|
assert 'Hello World' in r.data.decode('utf-8')
|