def load_dialect_impl(self, dialect): if dialect.name == 'postgresql': return dialect.type_descriptor(postgresql.MACADDR()) return dialect.type_descriptor(types.CHAR(16))
def test_convert_MACADDR(self, converter): prop = make_property(postgresql.MACADDR()) field = converter.property2field(prop) assert type(field) == fields.Str
def load_dialect_impl(self, dialect): if _is_pgsql(dialect): return postgresql.MACADDR() return self.impl