'Test if save() bails on an already open file.'

def test_double_open(self, lineparser):

    with lineparser._open('r'):
        with pytest.raises(IOError, match='Refusing    to    double-open    LineParser.'):
            lineparser.save()
