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
Creates the initial editor control.
dataset/ETHPy150Open ActivisionGameScience/assertpy/assertpy/assertpy.py/AssertionBuilder.is_not_empty--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/check_list_editor.py/CustomEditor.create_control