'Test switch_info success.'

def test_switch_info_good(self):

    module = Mock()
    module.params = dict(switch_name='eos')
    module.client.api.get_device_by_name.return_value = dict(fqdn='eos')
    info = cv_server_provision.switch_info(module)
    self.assertEqual(module.client.api.get_device_by_name.call_count, 1)
    self.assertEqual(info['fqdn'], 'eos')
    module.fail_json.assert_not_called()
