def test_convert_validate_driver(self):
        drv = ('networking_cisco.plugins.cisco.cfg_agent.device_drivers.'
               'dummy_driver.DummyRoutingDriver')
        res = utils.convert_validate_driver_class(drv)
        self.assertEqual(res, drv)

        self.assertRaises(utils.DriverNotFound,
                          utils.convert_validate_driver_class,
                          'this.is.not.a.driver')
    def test_convert_validate_driver(self):
        drv = ('networking_cisco.plugins.cisco.device_manager.plugging_drivers'
               '.noop_plugging_driver.NoopPluggingDriver')
        res = utils.convert_validate_driver_class(drv)
        self.assertEqual(res, drv)

        self.assertRaises(utils.DriverNotFound,
                          utils.convert_validate_driver_class,
                          'this.is.not.a.driver')
    def test_convert_validate_driver(self):
        drv = ('networking_cisco.plugins.cisco.device_manager.plugging_drivers'
               '.noop_plugging_driver.NoopPluggingDriver')
        res = utils.convert_validate_driver_class(drv)
        self.assertEqual(res, drv)

        self.assertRaises(
            utils.DriverNotFound, utils.convert_validate_driver_class,
            'this.is.not.a.driver')