def test_group_name_valid_chars_security_group(self):
        self.expect_http()
        self.mox.ReplayAll()

        # Test block group_name of non alphanumeric characters, spaces,
        # dashes, and underscores.
        security_group_name = "aa #^% -=99"

        self.assertRaises(EC2ResponseError, self.ec2.create_security_group,
                          security_group_name, 'test group')
Test that we sanely handle invalid security group names.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_api.py/ApiEc2TestCase.test_group_name_valid_chars_security_group