def testUpdateCount(self):
        """testing update count functionality"""
        c = self.cursor()
        try:
            c.execute("insert into zxtesting values (?, ?, ?)", [(500, 'bz', 'or')])
            assert c.updatecount == 1, "expected [1], got [%d]" % (c.updatecount)
            c.execute("select * from zxtesting")
            self.assertEquals(None, c.updatecount)
            # there's a *feature* in the mysql engine where it returns 0 for delete if there is no
            #  where clause, regardless of the actual value.  using a where clause forces it to calculate
            #  the appropriate value
            c.execute("delete from zxtesting where 1>0")
            assert c.updatecount == 8, (c.updatecount) % "expected [8], got [%d]"
            c.execute("update zxtesting set name = 'nothing'")
            self.assertEquals(0, c.updatecount)
        finally:
            c.close()
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/zxjdbc/zxtest.py/zxAPITestCase.testUpdateCount/swapped operands of `%`