| 
									
										
										
										
											2021-08-24 11:49:45 -04:00
										 |  |  | """Test different server responses.""" | 
					
						
							| 
									
										
										
										
											2021-10-21 15:13:43 +00:00
										 |  |  | import sure  # noqa # pylint: disable=unused-import | 
					
						
							| 
									
										
										
										
											2017-09-20 03:14:14 +09:00
										 |  |  | 
 | 
					
						
							|  |  |  | import moto.server as server | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-25 03:45:39 +09:00
										 |  |  | def test_{{ escaped_service }}_list(): | 
					
						
							| 
									
										
										
										
											2017-09-20 03:14:14 +09:00
										 |  |  |     backend = server.create_backend_app("{{ service }}") | 
					
						
							|  |  |  |     test_client = backend.test_client() | 
					
						
							| 
									
										
										
										
											2021-11-29 14:36:24 -01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     resp = test_client.get("/") | 
					
						
							|  |  |  |     resp.status_code.should.equal(200) | 
					
						
							|  |  |  |     str(resp.data).should.contain("?") |