Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_set.TestBinaryOps Class Reference

List of all members.

Public Member Functions

def setUp
def test_eq
def test_union_subset
def test_union_superset
def test_union_overlap
def test_union_non_overlap
def test_intersection_subset
def test_intersection_superset
def test_intersection_overlap
def test_intersection_non_overlap
def test_isdisjoint_subset
def test_isdisjoint_superset
def test_isdisjoint_overlap
def test_isdisjoint_non_overlap
def test_sym_difference_subset
def test_sym_difference_superset
def test_sym_difference_overlap
def test_sym_difference_non_overlap

Public Attributes

 set

Detailed Description

Definition at line 973 of file test_set.py.


Member Function Documentation

Definition at line 974 of file test_set.py.

00974 
00975     def setUp(self):
00976         self.set = set((2, 4, 6))

Here is the caller graph for this function:

Definition at line 977 of file test_set.py.

00977 
00978     def test_eq(self):              # SF bug 643115
00979         self.assertEqual(self.set, set({2:1,4:3,6:5}))

Here is the call graph for this function:

Definition at line 1008 of file test_set.py.

01008 
01009     def test_intersection_non_overlap(self):
01010         result = self.set & set([8])
01011         self.assertEqual(result, empty_set)

Here is the call graph for this function:

Definition at line 1004 of file test_set.py.

01004 
01005     def test_intersection_overlap(self):
01006         result = self.set & set([3, 4, 5])
01007         self.assertEqual(result, set([4]))

Here is the call graph for this function:

Definition at line 996 of file test_set.py.

00996 
00997     def test_intersection_subset(self):
00998         result = self.set & set((2, 4))
00999         self.assertEqual(result, set((2, 4)))

Here is the call graph for this function:

Definition at line 1000 of file test_set.py.

01000 
01001     def test_intersection_superset(self):
01002         result = self.set & set([2, 4, 6, 8])
01003         self.assertEqual(result, set([2, 4, 6]))

Here is the call graph for this function:

Definition at line 1024 of file test_set.py.

01024 
01025     def test_isdisjoint_non_overlap(self):
01026         result = self.set.isdisjoint(set([8]))
01027         self.assertEqual(result, True)

Here is the call graph for this function:

Definition at line 1020 of file test_set.py.

01020 
01021     def test_isdisjoint_overlap(self):
01022         result = self.set.isdisjoint(set([3, 4, 5]))
01023         self.assertEqual(result, False)

Here is the call graph for this function:

Definition at line 1012 of file test_set.py.

01012 
01013     def test_isdisjoint_subset(self):
01014         result = self.set.isdisjoint(set((2, 4)))
01015         self.assertEqual(result, False)

Here is the call graph for this function:

Definition at line 1016 of file test_set.py.

01016 
01017     def test_isdisjoint_superset(self):
01018         result = self.set.isdisjoint(set([2, 4, 6, 8]))
01019         self.assertEqual(result, False)

Here is the call graph for this function:

Definition at line 1040 of file test_set.py.

01040 
01041     def test_sym_difference_non_overlap(self):
01042         result = self.set ^ set([8])
01043         self.assertEqual(result, set([2, 4, 6, 8]))
01044 
01045 #==============================================================================

Here is the call graph for this function:

Definition at line 1036 of file test_set.py.

01036 
01037     def test_sym_difference_overlap(self):
01038         result = self.set ^ set((3, 4, 5))
01039         self.assertEqual(result, set([2, 3, 5, 6]))

Here is the call graph for this function:

Definition at line 1028 of file test_set.py.

01028 
01029     def test_sym_difference_subset(self):
01030         result = self.set ^ set((2, 4))
01031         self.assertEqual(result, set([6]))

Here is the call graph for this function:

Definition at line 1032 of file test_set.py.

01032 
01033     def test_sym_difference_superset(self):
01034         result = self.set ^ set((2, 4, 6, 8))
01035         self.assertEqual(result, set([8]))

Here is the call graph for this function:

Definition at line 992 of file test_set.py.

00992 
00993     def test_union_non_overlap(self):
00994         result = self.set | set([8])
00995         self.assertEqual(result, set([2, 4, 6, 8]))

Here is the call graph for this function:

Definition at line 988 of file test_set.py.

00988 
00989     def test_union_overlap(self):
00990         result = self.set | set([3, 4, 5])
00991         self.assertEqual(result, set([2, 3, 4, 5, 6]))

Here is the call graph for this function:

Definition at line 980 of file test_set.py.

00980 
00981     def test_union_subset(self):
00982         result = self.set | set([2])
00983         self.assertEqual(result, set((2, 4, 6)))

Here is the call graph for this function:

Definition at line 984 of file test_set.py.

00984 
00985     def test_union_superset(self):
00986         result = self.set | set([2, 4, 6, 8])
00987         self.assertEqual(result, set([2, 4, 6, 8]))

Here is the call graph for this function:


Member Data Documentation

Definition at line 975 of file test_set.py.


The documentation for this class was generated from the following file: