def __rshift__(self, other): from sql.operators import RShift return RShift(self, other)
def test_rshift(self): for rshift in [RShift(self.table.c1, 2), self.table.c1 >> 2]: self.assertEqual(str(rshift), '("c1" >> %s)') self.assertEqual(rshift.params, (2,))