'Fails unless the specified directory is empty.
The default error message can be overridden with the ``msg`` argument.'

def directory_should_be_empty(self, path, msg=None):

    path = self._absnorm(path)
    items = self._list_dir(path)
    if items:
        self._fail(msg, ("Directory    '%s'    is    not    empty.    Contents:    %s." % (path, seq2str(items, lastsep=',    '))))
    self._link("Directory    '%s'    is    empty.", path)
