def test_get_instance(self):
    cpm = conncheck.ConnCheckPluginManager(module_source='a-source', tags='abc')
    self.mock_conncheck_manager.get_instance.return_value = 'an-instance'
    self.assertEqual(cpm.get_instance('a-spec'), 'an-instance')
    self.mock_conncheck_manager.get_instance.assert_called_once_with('a-spec')
def test_get_instance(self):
    cpm = conncheck.ConnCheckPluginManager(module_source='a-source', tags='abc')
    self.mock_conncheck_manager.get_instance.return_value = 'an-instance'
    self.assertEqual(cpm.get_instance('a-spec'), 'an-instance')
    self.mock_conncheck_manager.get_instance.assert_called_once_with('a-spec')