#NEWLINE# def test_user_set( self ) : #NEWLINE# #INDENT# username = self . _create_dummy_user ( ) #NEWLINE# raw_output = self . openstack ( ( 'user show %s' % username ) ) #NEWLINE# user = self . parse_show_as_object ( raw_output ) #NEWLINE# new_username = data_utils . rand_name ( 'NewTestUser' ) #NEWLINE# new_email = ( data_utils . rand_name ( ) + '@example.com' ) #NEWLINE# raw_output = self . openstack ( ( 'user set --email %(email)s --name %(new_name)s %(id)s' % { #NEWLINE# #INDENT# 'email' : new_email , #NEWLINE# 'new_name' : new_username , #NEWLINE# 'id' : user [ 'id' ] , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( 0 , len ( raw_output ) ) #NEWLINE# raw_output = self . openstack ( ( 'user show %s' % new_username ) ) #NEWLINE# new_user = self . parse_show_as_object ( raw_output ) #NEWLINE# self . assertEqual ( user [ 'id' ] , new_user [ 'id' ] ) #NEWLINE# self . assertEqual ( new_email , new_user [ 'email' ] )