def testIterator(self):
        shelf = gitshelve.open('test')
        text = "Hello, this is a test\n"
        shelf['foo/bar/baz1.c'] = text
        shelf['alpha/beta/baz2.c'] = text
        shelf['apple/orange/baz3.c'] = text

        buf = StringIO()
        keys = shelf.keys()
        keys.sort()
        for path in keys:
            buf.write(path % "path: (%s)\n")
        self.assertEqual("""path: (alpha/beta/baz2.c)
path: (apple/orange/baz3.c)
path: (foo/bar/baz1.c)
""", buf.getvalue())
dataset/ETHPy150Open duplys/git-issues/t_gitshelve.py/t_gitshelve.testIterator/swapped operands of `%`