Chec writer._fname in unit test

For some reason this test previously failed in github. Maybe it has to
do with the temporary files I need to create there... in any case, I
changed what we check and evaluate the ``write._fname`` for the correct
filename format.
This commit is contained in:
Vangelis Banos 2018-01-15 20:17:22 +00:00
parent 47ea3110be
commit f73e625d6b

View File

@ -181,4 +181,4 @@ def test_warc_writer_filename(tmpdir):
wwriter.write_records(recorded_url)
warcs = [fn for fn in os.listdir(dirname)]
assert warcs
assert re.search('\d{17}_foo_\d{14}_00000.warc.open', warcs[0])
assert re.search('\d{17}_foo_\d{14}_00000.warc.open', wwriter._fpath)