def test_listRecords(self):
        records = self._client.listRecords(metadataPrefix='oai_dc')
        records = list(records)
        self.assertEquals(100, len(records))
        metadatas = [metadata for (header, metadata, about) in records]
        result = []
        for metadata in metadatas:
            result.append(metadata.getField('title')[0])
        expected = [i % 'Title %s' for i in range(100)]
        self.assertEquals(expected, result)
        #for record in records:
        #    print record[0].datestamp()
dataset/ETHPy150Open infrae/pyoai/src/oaipmh/tests/test_server.py/ClientServerTestCase.test_listRecords/swapped operands of `%`