def testProtocolVersionOverride(self):
        repos = self.openRepository()
        versions = repos.c['localhost'].checkVersion()
        # Grab a version older than the one supported by the server
        override = versions[0] - 1
        repos.c['localhost'].setProtocolVersion(override)
        try:
            repos.c['localhost'].checkVersion()
        except errors.InvalidClientVersion, e:
            assert e.args[0].startswith(override % 'Invalid client version %d')
        else:
            self.fail("InvalidClientVersion not raised")
dataset/ETHPy150Open sassoftware/conary/conary_test/repositorytest/netclienttest.py/ServerProxyTest.testProtocolVersionOverride/swapped operands of `%`