code: def is_not_empty(self):
          
          if len(self.val) == 0:
              if isinstance(self.val, str_types):
                  self._err('Expected not empty string, but was empty.')
              else:
                  self._err('Expected not empty, but was empty.')
          return self
docs: Asserts that val is not empty.