'Test config when not enough arguments provided.'

def test_not_enough_arguments(self):

    self.init_recorder()
    config = {'history': {}, 'sensor': {'platform': 'history_stats', 'entity_id': 'binary_sensor.test_id', 'name': 'Test', 'state': 'on', 'start': '{{    now()    }}'}}
    setup_component(self.hass, 'sensor', config)
    self.assertEqual(self.hass.states.get('sensor.test'), None)
    self.assertRaises(TypeError, setup_component(self.hass, 'sensor', config))
