'Make sure that globbed dogstream logfile matching works.'

def test_dogstream_log_path_globbing(self):

    first_tmpfile = NamedTemporaryFile()
    tmp_fprefix = os.path.basename(first_tmpfile.name)
    all_tmp_filenames = set([first_tmpfile.name])
    avoid_gc = []
    for i in range(3):
        new_tmpfile = NamedTemporaryFile(prefix=tmp_fprefix)
        all_tmp_filenames.add(new_tmpfile.name)
        avoid_gc.append(new_tmpfile)
    dogstream_glob = os.path.join(gettempdir(), (tmp_fprefix + '*'))
    paths = Dogstreams._get_dogstream_log_paths(dogstream_glob)
    self.assertEqual(set(paths), all_tmp_filenames)
