# Path: ldaptor/schema.py
# def extractWord(text):
# def peekWord(text):
#     def _to_list(self, text):
#     def _strings_to_list(self, text):
#     def _str_list(self, l):
#     def _list(self, l):
#     def _str(self, s):
#     def __init__(self, text):
#     def _parse(self, text):
#     def __repr__(self):
#     def __str__(self):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __init__(self, text):
#     def _parse(self, text):
#     def __repr__(self):
#     def __str__(self):
#     def __init__(self, text):
#     def __repr__(self):
#     def __init__(self, text):
#     def __repr__(self):
# class ASN1ParserThingie:
# class ObjectClassDescription(ASN1ParserThingie):
# class AttributeTypeDescription(ASN1ParserThingie):
# class SyntaxDescription(ASN1ParserThingie):
# class MatchingRuleDescription(ASN1ParserThingie):


from twisted.trial import unittest
from ldaptor import schema
            for key, want in expected.items():
                if key in defaults:
                    del defaults[key]
                got = getattr(a, key)
                self.assertEquals(got, want)

            for key, want in defaults.items():
                got = getattr(a, key)
                self.assertEquals(got, want)

    def testStringification(self):
        for want, values in self.knownValues:
            a=schema.ObjectClassDescription(None)
            for key, val in values.items():
                setattr(a, key, val)

            want = ' '.join(want.split(None))
            got = ' '.join(str(a).split(None))
            self.assertEquals(got, want)


class TestComparison(unittest.TestCase):
    ORDER = [
        'country',
        'organization',
        'organizationalUnit',
        ]
    def setUp(self):
        data = {}
        for oc,text in OBJECTCLASSES.items():

# Path: ldaptor/schema.py
# def extractWord(text):
# def peekWord(text):
#     def _to_list(self, text):
#     def _strings_to_list(self, text):
#     def _str_list(self, l):
#     def _list(self, l):
#     def _str(self, s):
#     def __init__(self, text):
#     def _parse(self, text):
#     def __repr__(self):
#     def __str__(self):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __init__(self, text):
#     def _parse(self, text):
#     def __repr__(self):
#     def __str__(self):
#     def __init__(self, text):
#     def __repr__(self):
#     def __init__(self, text):
#     def __repr__(self):
# class ASN1ParserThingie:
# class ObjectClassDescription(ASN1ParserThingie):
# class AttributeTypeDescription(ASN1ParserThingie):
# class SyntaxDescription(ASN1ParserThingie):
# class MatchingRuleDescription(ASN1ParserThingie):


# Path: ldaptor/test/test_schema.py
from twisted.trial import unittest
from ldaptor import schema

            for key, want in expected.items():
                if key in defaults:
                    del defaults[key]
                got = getattr(a, key)
                self.assertEquals(got, want)

            for key, want in defaults.items():
                got = getattr(a, key)
                self.assertEquals(got, want)

    def testStringification(self):
        for want, values in self.knownValues:
            a=schema.ObjectClassDescription(None)
            for key, val in values.items():
                setattr(a, key, val)

            want = ' '.join(want.split(None))
            got = ' '.join(str(a).split(None))
            self.assertEquals(got, want)


class TestComparison(unittest.TestCase):
    ORDER = [
        'country',
        'organization',
        'organizationalUnit',
        ]
    def setUp(self):
        data = {}
        for oc,text in OBJECTCLASSES.items():

            data[oc] = schema.ObjectClassDescription(text)