'Test setup with minimum configuration.'

@requests_mock.Mocker()
def test_setup_minimum(self, mock_req):

    mock_req.get('http://localhost', status_code=200)
    self.assertTrue(setup_component(self.hass, 'sensor', {'sensor': {'platform': 'rest', 'resource': 'http://localhost'}}))
    self.assertEqual(2, mock_req.call_count)
    assert_setup_component(1, 'switch')
