'Test the Randowm number sensor.'

def test_random_sensor(self):

    config = {'sensor': {'platform': 'random', 'name': 'test', 'minimum': 10, 'maximum': 20}}
    assert setup_component(self.hass, 'sensor', config)
    state = self.hass.states.get('sensor.test')
    self.assertLessEqual(int(state.state), config['sensor']['maximum'])
    self.assertGreaterEqual(int(state.state), config['sensor']['minimum'])
