def test_entitytype_name():
    dn = DistinguishedName.from_str('Network=Global,Node=001')

    assert_equal(dn.entitytype_name(), 'Node')
def test_from_str():
    dn = DistinguishedName.from_str('Network=Global,Node=001')

    assert_equal(len(dn.parts), 2)