'Ensure that we can change a group name.
The name must not be restricted to alphanumeric characters.
bug #1233501 Security group names cannot contain at characters
bug #1224576 Security group names cannot contain spaces'

@test.create_stubs({api.neutron: ('security_group_update', 'security_group_get')})
def test_update_security_groups_post(self):

    sec_group = self.security_groups.first()
    sec_group.name = '@new    name'
    api.neutron.security_group_update(IsA(http.HttpRequest), str(sec_group.id), sec_group.name, sec_group.description).AndReturn(sec_group)
    api.neutron.security_group_get(IsA(http.HttpRequest), sec_group.id).AndReturn(sec_group)
    self.mox.ReplayAll()
    form_data = {'method': 'UpdateGroup', 'id': sec_group.id, 'name': sec_group.name, 'description': sec_group.description}
    res = self.client.post(self.update_url, form_data)
    self.assertRedirectsNoFollow(res, INDEX_URL)
