def METHOD_NAME(self):
    block = StatisticsBlock()
    with self.assertRaises(ValidationError) as cm:
        block.clean({
            'visualization': 'statistics/visualizations/blue-table.html',
            'dataset': 'no_params',
            'params': '',
        })
    self.assertEqual(cm.exception.params, {'dataset': ['A number dataset cannot be used with a map visualization']})