def test_name_validation(self):
        server = dict(name='server1 ',
                      imageRef=self.image_id,
                      flavorRef=self.flavor_id)

        server_args = {'server': server}
        self.assertRaises(client.OpenStackApiException, self.api.post_server,
                          server_args)
Regression test for bug #1541691.
dataset/ETHPy150Open openstack/nova/nova/tests/functional/regressions/test_bug_1541691.py/TestServerValidation.test_name_validation