'Test setup with minimum configuration.'

def test_setup_minimum(self, aioclient_mock):

    aioclient_mock.get('http://localhost', status=200)
    with assert_setup_component(1, 'switch'):
        assert setup_component(self.hass, 'switch', {'switch': {'platform': 'rest', 'resource': 'http://localhost'}})
    assert (aioclient_mock.call_count == 1)
