'Assert that an object has non-zero length.
Args:
container: Anything that implements the collections.Sized interface.
msg: Optional message to report on failure.'

def assertNotEmpty(self, container, msg=None):

    if (not isinstance(container, collections.Sized)):
        self.fail('Expected    a    Sized    object,    got:    {!r}'.format(type(container).__name__), msg)
    if (not len(container)):
        self.fail('{!r}    has    length    of    0.'.format(container), msg)
