| 
									
										
										
										
											2019-12-21 19:50:04 +02:00
										 |  |  | #!/usr/bin/env python | 
					
						
							|  |  |  | # coding=utf-8 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import unittest | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-23 13:08:32 +02:00
										 |  |  | from app import main | 
					
						
							| 
									
										
										
										
											2019-12-21 19:50:04 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-21 22:22:32 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-21 19:50:04 +02:00
										 |  |  | class TestCase(unittest.TestCase): | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def setUp(self): | 
					
						
							| 
									
										
										
										
											2019-12-23 13:08:32 +02:00
										 |  |  |         self.app = main.app.test_client() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_main_page(self): | 
					
						
							|  |  |  |         response = self.app.get('/', follow_redirects=True) | 
					
						
							|  |  |  |         self.assertEqual(response.status_code, 200) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def test_users_page(self): | 
					
						
							|  |  |  |         response = self.app.get('/users', follow_redirects=True) | 
					
						
							|  |  |  |         self.assertEqual(response.status_code, 200) | 
					
						
							| 
									
										
										
										
											2019-12-21 19:50:04 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-21 22:22:32 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-21 19:50:04 +02:00
										 |  |  | if __name__ == '__main__': | 
					
						
							|  |  |  |     unittest.main() |