'Test for successfully setting up the platform.'

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

    mock_req.get('http://localhost:8085/data.json', text=load_fixture('openhardwaremonitor.json'))
    self.assertTrue(setup_component(self.hass, 'sensor', self.config))
    entities = self.hass.states.async_entity_ids('sensor')
    self.assertEqual(len(entities), 38)
    state = self.hass.states.get('sensor.testpc_intel_core_i77700_clocks_bus_speed')
    self.assertIsNot(state, None)
    self.assertEqual(state.state, '100')
