def schemas(self, *args, **kwargs): size, offset = args if args else (self.default_interval.size, self.default_interval.offset) return [(self.key, Mod(self.definition + offset, size))]
def test_function_with_values_and_fields_for_table(self): f = Mod(self.table_abc.foo, 2).for_(self.table_efg) self.assertEqual('MOD("cx1"."foo",2)', str(f))
def __mod__(self, other): return Mod(self, other)