# Path: ldaptor/attributeset.py
# class LDAPAttributeSet(set):
#     def __init__(self, key, *a, **kw):
#     def __repr__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def difference(self, other):
#     def union(self, other):
#     def intersection(self, other):
#     def symmetric_difference(self, other):
#     def copy(self):
#     def __deepcopy__(self, memo):


from twisted.trial import unittest
from ldaptor import attributeset
import sets
        b = ['b', 'c', 'd']
        self.assertEquals(a, b)

    def testEquality_True_List_Ordering(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = ['b', 'd', 'c']
        self.assertEquals(a, b)

    def testEquality_False_Value(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e'])
        self.assertNotEqual(a, b)

    def testEquality_False_Key(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('l', ['b', 'c', 'd'])
        self.assertNotEqual(a, b)

class TestSetOperations(unittest.TestCase):
    def testDifference(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e'])
        self.assertEquals(a - b, sets.Set(['d']))

    def testUnion(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e'])
        self.assertEquals(a | b, sets.Set(['b', 'c', 'd', 'e']))

    def testIntersection(self):

# Path: ldaptor/attributeset.py
# class LDAPAttributeSet(set):
#     def __init__(self, key, *a, **kw):
#     def __repr__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def difference(self, other):
#     def union(self, other):
#     def intersection(self, other):
#     def symmetric_difference(self, other):
#     def copy(self):
#     def __deepcopy__(self, memo):


# Path: ldaptor/test/test_attributeset.py
from twisted.trial import unittest
from ldaptor import attributeset
import sets

        b = ['b', 'c', 'd']
        self.assertEquals(a, b)

    def testEquality_True_List_Ordering(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = ['b', 'd', 'c']
        self.assertEquals(a, b)

    def testEquality_False_Value(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e'])
        self.assertNotEqual(a, b)

    def testEquality_False_Key(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('l', ['b', 'c', 'd'])
        self.assertNotEqual(a, b)

class TestSetOperations(unittest.TestCase):
    def testDifference(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e'])
        self.assertEquals(a - b, sets.Set(['d']))

    def testUnion(self):
        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])
        b = attributeset.LDAPAttributeSet('k', ['b', 'c', 'e'])
        self.assertEquals(a | b, sets.Set(['b', 'c', 'd', 'e']))

    def testIntersection(self):

        a = attributeset.LDAPAttributeSet('k', ['b', 'c', 'd'])