'Test setup without TLS.'

@mock.patch('mficlient.client.MFiClient')
def test_setup_with_tls_disabled(self, mock_client):

    config = dict(self.GOOD_CONFIG)
    del config[self.THING]['port']
    config[self.THING]['ssl'] = False
    config[self.THING]['verify_ssl'] = False
    assert setup_component(self.hass, self.COMPONENT.DOMAIN, config)
    self.assertEqual(mock_client.call_count, 1)
    self.assertEqual(mock_client.call_args, mock.call('foo', 'user', 'pass', port=6080, use_tls=False, verify=False))
