| 
									
										
										
										
											2021-12-07 11:10:43 -01:00
										 |  |  | import json | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import moto.server as server | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def test_create_without_enable_option(): | 
					
						
							|  |  |  |     backend = server.create_backend_app("guardduty") | 
					
						
							|  |  |  |     test_client = backend.test_client() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     body = {"enable": "True"} | 
					
						
							|  |  |  |     response = test_client.post("/detector", data=json.dumps(body)) | 
					
						
							| 
									
										
										
										
											2023-07-29 23:04:49 +00:00
										 |  |  |     assert response.status_code == 200 | 
					
						
							|  |  |  |     assert "detectorId" in json.loads(response.data) |