Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 355 Bytes

test_boilerplate.md

File metadata and controls

15 lines (10 loc) · 355 Bytes

from app import app import unittest

class FlaskTestCase(unittest.TestCase):

# Ensure that flask was set up correctly
def test_index(self):
    tester = app.test_client(self)
    response = tester.get('/login', content_type='html/text')
    self.assertEqual(response.status_code, 200)

if name == 'main': unittest.main()