Mocked open() in failing test indexer.tests.TestQuery.test_index