def METHOD_NAME(self):
    self.validator = NoWhitespaceValidator()
    value_without_leading_or_trailing_whitespaces = 'test value'
    result = self.validator(value_without_leading_or_trailing_whitespaces)
    self.assertIsNone(result)