Example #1
0
    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)])
Example #2
0
 def test_third_party_path(self):
     self.assertEqual(
         'third.party.quantum.QuantumPlugin',
         legacy.scrub_class_path('third.party.quantum.QuantumPlugin')
     )
Example #3
0
 def test_neutron_path(self):
     self.assertEqual(
         'neutron.foo.NeutronPlugin',
         legacy.scrub_class_path('neutron.foo.NeutronPlugin')
     )