text: from main import app
  import unittest
  
  class FlaskTestCase(unittest.TestCase):
  	def test_index(self):
  		tester = app.test_client(self)
  		response = tester.get('/login', content_type = 'html/text')
  		self.assertEqual(response.status_code, 200)
  
  
  	def test_login_page_loads(self):
  		tester = app.test_client(self)
  		response = tester.get('/login', content_type = 'html/text')
  		self.assertTrue(b'Please login' in response.data)
  
  if __name__ == '__main__':
  	unittest.main()