[lang-ref] ( determine_type_exact ) ( python )

def test_determine_type_exact():
    class Parent:
        pass
    class Child(Parent):
        pass

    parent = Parent()
    child  = Child()

    assert type(parent) is     Parent
    assert type(child)  is not Parent
    assert type(child)  is     Child