Skip to content

Commit

Permalink
tesat demo
Browse files Browse the repository at this point in the history
  • Loading branch information
punkdata committed Jun 13, 2018
1 parent edb878d commit cb9890e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test_hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import hello_world
import unittest

class TestHelloWorld(unittest.TestCase):

def setUp(self):
self.app = hello_world.app.test_client()
self.app.testing = True

def test_status_code(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)

def test_message(self):
response = self.app.get('/')
message = hello_world.wrap_html('Hello DockerCon 2018!')
self.assertEqual(response.data, message)

if __name__ == '__main__':
unittest.main()

0 comments on commit cb9890e

Please sign in to comment.