#NEWLINE# @ mock . patch ( 'rally.deployment.serverprovider.providers.openstack.osclients' ) #NEWLINE# def test_openstack_provider_init( self , mock_osclients ) : #NEWLINE# #INDENT# cfg = self . _get_valid_config ( ) #NEWLINE# mock_osclients . Clients = mock . MagicMock ( return_value = FakeOSClients ( ) ) #NEWLINE# os_provider = OSProvider ( mock . MagicMock ( ) , cfg ) #NEWLINE# self . assertEqual ( 'nova' , os_provider . nova ) #NEWLINE# self . assertEqual ( 'glance' , os_provider . glance )