#NEWLINE# def testConfigOverrideFlag( self ) : #NEWLINE# #INDENT# p = mock . patch ( ( configs . __name__ + '.FLAGS' ) ) #NEWLINE# self . addCleanup ( p . stop ) #NEWLINE# mock_flags = p . start ( ) #NEWLINE# config_override = [ 'a.vm_groups.default.vm_count=5' , 'a.flags.flag=value' ] #NEWLINE# mock_flags . configure_mock ( config_override = config_override , benchmark_config_file = None ) #NEWLINE# config = configs . GetUserConfig ( ) #NEWLINE# self . assertEqual ( config [ 'a' ] [ 'vm_groups' ] [ 'default' ] [ 'vm_count' ] , 5 ) #NEWLINE# self . assertEqual ( config [ 'a' ] [ 'flags' ] [ 'flag' ] , 'value' )