'Test server_configurable_configlet good.'

def test_server_configurable_configlet_good(self):

    module = Mock()
    module.params = dict(switch_name='eos')
    configlets = [dict(name='configlet1', info='line'), dict(name='eos-server', info='info')]
    module.client.api.get_configlets_by_device_id.return_value = configlets
    sw_info = dict(key='key', type='type', fqdn='eos')
    result = cv_server_provision.server_configurable_configlet(module, sw_info)
    self.assertEqual(module.client.api.get_configlets_by_device_id.call_count, 1)
    self.assertIsNotNone(result)
    self.assertEqual(result['name'], 'eos-server')
    self.assertEqual(result['info'], 'info')
