Best Python code snippet using tempest_python
test_container_services_negative.py
Source:test_container_services_negative.py
...24 _, body = cls.account_client.list_extensions()25 cls.constraints = body['swift']26 @test.attr(type=["negative"])27 @test.idempotent_id('30686921-4bed-4764-a038-40d741ed4e78')28 def test_create_container_name_exceeds_max_length(self):29 # Attempts to create a container name that is longer than max30 max_length = self.constraints['max_container_name_length']31 # create a container with long name32 container_name = data_utils.arbitrary_string(size=max_length + 1)33 ex = self.assertRaises(exceptions.BadRequest,34 self.container_client.create_container,35 container_name)36 self.assertIn('Container name length of ' + str(max_length + 1) +37 ' longer than ' + str(max_length), str(ex))38 @test.attr(type=["negative"])39 @test.idempotent_id('41e645bf-2e68-4f84-bf7b-c71aa5cd76ce')40 def test_create_container_metadata_name_exceeds_max_length(self):41 # Attempts to create container with metadata name42 # that is longer than max....
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!