def METHOD_NAME(self):
    self.validator = NoControlCharactersValidator(message='custom message', code='custom code')
    value_with_tabs = 'test\tvalue'
    with self.assertRaises(ValidationError) as cm:
        self.validator(value_with_tabs)
    self.assertEqual(cm.exception.message, 'custom message')
    self.assertEqual(cm.exception.code, 'custom code')
    self.assertDictEqual(cm.exception.params, {'value': value_with_tabs, 'whitelist': None})