simple-python-pyinstaller-app/sources/test_webapp.py
kudlaty 83a400beba feature/kjug
added build stephb
2018-03-22 18:38:31 +01:00

15 lines
367 B
Python

from webapp import app
import unittest
class BasicTestCase(unittest.TestCase):
def test_index(self):
tester = app.test_client(self)
response = tester.get('/', content_type='html/text')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.data, b'Hello, World!')
if __name__ == '__main__':
unittest.main()