'Test if creating a line parser correctly reads its file.'

def test_init(self, tmpdir):

    (tmpdir / 'file').write('one\ntwo\n')
    lineparser = lineparsermod.LineParser(str(tmpdir), 'file')
    assert (lineparser.data == ['one', 'two'])
    (tmpdir / 'file').write_binary('\xfe\n\xff\n')
    lineparser = lineparsermod.LineParser(str(tmpdir), 'file', binary=True)
    assert (lineparser.data == ['\xfe', '\xff'])
