'Fake for glob.glob.
Verifies the arguments and returns the files listed in self._files, or
a single fake file if an exception is expected.'

def glob_fake(self, pattern):

    assert (pattern == '/etc/*-release')
    if (self._files is None):
        return ['fake-file']
    else:
        return sorted(list(self._files))
