def test_length(self): self.assertEqual(len(OIDSet()), 0) new_set = OIDSet() new_set._oid_set = ffi.new('gss_OID_set[1]') self.assertEqual(len(new_set), 0)
def test_in(self): for mech in get_all_mechs(): self.assertIn(mech, get_all_mechs()) self.assertNotIn(OID(ffi.new('gss_OID_desc[1]')[0]), get_all_mechs()) self.assertNotIn("not an OID", get_all_mechs())