def oid_compare_test_notlexical(self): oid1 = ".0.1.3" oid2 = ".0.1.20" assert passpersist.oid_compare(oid1, oid2) == -1
def oid_compare_test_equal(self): oid1 = ".0.1" oid2 = ".0.1" assert passpersist.oid_compare(oid1, oid2) == 0
def oid_compare_test_greater(self): oid1 = ".0.2" oid2 = ".0.1.1" assert passpersist.oid_compare(oid1, oid2) == 1
def oid_compare_test_smaller(self): oid1 = ".0.0" oid2 = ".0.0.1" assert passpersist.oid_compare(oid1, oid2) == -1