| 
									
										
										
										
											2021-10-18 19:44:29 +00:00
										 |  |  | import sure  # noqa # pylint: disable=unused-import | 
					
						
							| 
									
										
										
										
											2017-09-26 17:37:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | import moto.server as server | 
					
						
							|  |  |  | from moto import mock_batch | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  | """
 | 
					
						
							| 
									
										
										
										
											2017-09-26 17:37:26 +01:00
										 |  |  | Test the different server responses | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  | """
 | 
					
						
							| 
									
										
										
										
											2017-09-26 17:37:26 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-22 21:36:39 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-26 17:37:26 +01:00
										 |  |  | @mock_batch | 
					
						
							|  |  |  | def test_batch_list(): | 
					
						
							|  |  |  |     backend = server.create_backend_app("batch") | 
					
						
							|  |  |  |     test_client = backend.test_client() | 
					
						
							| 
									
										
										
										
											2017-10-22 21:36:39 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |     res = test_client.get("/v1/describecomputeenvironments") | 
					
						
							| 
									
										
										
										
											2017-10-22 21:36:39 +01:00
										 |  |  |     res.status_code.should.equal(200) |