| 
									
										
										
										
											2021-10-18 19:44:29 +00:00
										 |  |  | import sure  # noqa # pylint: disable=unused-import | 
					
						
							| 
									
										
										
										
											2021-02-25 16:07:26 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | import moto.server as server | 
					
						
							|  |  |  | from moto import mock_mediaconnect | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | Test the different server responses | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @mock_mediaconnect | 
					
						
							|  |  |  | def test_mediaconnect_list_flows(): | 
					
						
							|  |  |  |     backend = server.create_backend_app("mediaconnect") | 
					
						
							|  |  |  |     test_client = backend.test_client() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     res = test_client.get("/v1/flows") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     result = res.data.decode("utf-8") | 
					
						
							|  |  |  |     result.should.contain('"flows": []') |