'Tests that the model meta class configures inherited models properly'

def test_inheritance_metaclass(self):

    class Base(models.Model, ):
        partition = columns.Integer(primary_key=True)
        type1 = columns.Integer(discriminator_column=True)
    class M1(Base, ):
        __discriminator_value__ = 1
    assert Base._is_polymorphic
    assert M1._is_polymorphic
    assert Base._is_polymorphic_base
    assert (not M1._is_polymorphic_base)
    assert (Base._discriminator_column is Base._columns['type1'])
    assert (M1._discriminator_column is M1._columns['type1'])
    assert (Base._discriminator_column_name == 'type1')
    assert (M1._discriminator_column_name == 'type1')
