

def test_relative_local_nested_req_files(self, finder, monkeypatch):
    '\n        Test a relative nested req file path is joined with the req file dir\n        '
    req_file = os.path.normpath('/path/req_file.txt')

    def parse(*args, **kwargs):
        return iter([])
    mock_parse = Mock()
    mock_parse.side_effect = parse
    monkeypatch.setattr(pip.req.req_file, 'parse_requirements', mock_parse)
    list(process_line('-r reqs.txt', req_file, 1, finder=self))
    call = mock_parse.mock_calls[0]
    assert (call[1][0] == os.path.normpath('/path/reqs.txt'))

dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py TestProcessLine.test_relative_local_nested_req_files/VarMisuse@87/160 `finder`->`self`