forked from shadycuz/unicorn_api_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests_app.py
More file actions
29 lines (21 loc) · 691 Bytes
/
tests_app.py
File metadata and controls
29 lines (21 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
import app
import unittest
class AppTestCase(unittest.TestCase):
def setUp(self):
app.app.config['TESTING'] = True
self.app = app.app.test_client()
def test_empty_get(self):
rv = self.app.get('/')
self.assertEqual(rv.status, '200 OK')
def test_healthcheck(self):
rv = self.app.get('/healthcheck')
self.assertEqual(rv.status, '200 OK')
def test_unicorns(self):
rv = self.app.get('/unicorn')
self.assertEqual(rv.status, '200 OK')
def test_unicorn(self):
rv = self.app.get('/unicorn/Buzzy')
self.assertEqual(rv.status, '200 OK')
if __name__ == '__main__':
unittest.main()