def test_quantum_path(self): with mock.patch.object(legacy, 'LOG') as log: self.assertEqual( 'neutron.foo.NeutronPlugin', legacy.scrub_class_path('quantum.foo.QuantumPlugin') ) log.assert_has_calls([mock.call.warn(mock.ANY, mock.ANY)])
def test_third_party_path(self): self.assertEqual( 'third.party.quantum.QuantumPlugin', legacy.scrub_class_path('third.party.quantum.QuantumPlugin') )
def test_neutron_path(self): self.assertEqual( 'neutron.foo.NeutronPlugin', legacy.scrub_class_path('neutron.foo.NeutronPlugin') )