Back to index

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

List of all members.

Public Member Functions

def setUp
def test_union_subset
def test_union_superset
def test_union_overlap
def test_union_non_overlap
def test_union_method_call
def test_intersection_subset
def test_intersection_superset
def test_intersection_overlap
def test_intersection_non_overlap
def test_intersection_method_call
def test_sym_difference_subset
def test_sym_difference_superset
def test_sym_difference_overlap
def test_sym_difference_non_overlap
def test_sym_difference_method_call
def test_difference_subset
def test_difference_superset
def test_difference_overlap
def test_difference_non_overlap
def test_difference_method_call

Public Attributes

 set

Detailed Description

Definition at line 1046 of file test_set.py.


Member Function Documentation

Definition at line 1047 of file test_set.py.

01047 
01048     def setUp(self):
01049         self.set = set((2, 4, 6))

Here is the caller graph for this function:

Definition at line 1126 of file test_set.py.

01126 
01127     def test_difference_method_call(self):
01128         self.set.difference_update(set([3, 4, 5]))
01129         self.assertEqual(self.set, set([2, 6]))
01130 
01131 #==============================================================================

Here is the call graph for this function:

Definition at line 1122 of file test_set.py.

01122 
01123     def test_difference_non_overlap(self):
01124         self.set -= set([8])
01125         self.assertEqual(self.set, set([2, 4, 6]))

Here is the call graph for this function:

Definition at line 1118 of file test_set.py.

01118 
01119     def test_difference_overlap(self):
01120         self.set -= set((3, 4, 5))
01121         self.assertEqual(self.set, set([2, 6]))

Here is the call graph for this function:

Definition at line 1110 of file test_set.py.

01110 
01111     def test_difference_subset(self):
01112         self.set -= set((2, 4))
01113         self.assertEqual(self.set, set([6]))

Here is the call graph for this function:

Definition at line 1114 of file test_set.py.

01114 
01115     def test_difference_superset(self):
01116         self.set -= set((2, 4, 6, 8))
01117         self.assertEqual(self.set, set([]))

Here is the call graph for this function:

Definition at line 1086 of file test_set.py.

01086 
01087     def test_intersection_method_call(self):
01088         self.set.intersection_update(set([3, 4, 5]))
01089         self.assertEqual(self.set, set([4]))

Here is the call graph for this function:

Definition at line 1082 of file test_set.py.

01082 
01083     def test_intersection_non_overlap(self):
01084         self.set &= set([8])
01085         self.assertEqual(self.set, empty_set)

Here is the call graph for this function:

Definition at line 1078 of file test_set.py.

01078 
01079     def test_intersection_overlap(self):
01080         self.set &= set([3, 4, 5])
01081         self.assertEqual(self.set, set([4]))

Here is the call graph for this function:

Definition at line 1070 of file test_set.py.

01070 
01071     def test_intersection_subset(self):
01072         self.set &= set((2, 4))
01073         self.assertEqual(self.set, set((2, 4)))

Here is the call graph for this function:

Definition at line 1074 of file test_set.py.

01074 
01075     def test_intersection_superset(self):
01076         self.set &= set([2, 4, 6, 8])
01077         self.assertEqual(self.set, set([2, 4, 6]))

Here is the call graph for this function:

Definition at line 1106 of file test_set.py.

01106 
01107     def test_sym_difference_method_call(self):
01108         self.set.symmetric_difference_update(set([3, 4, 5]))
01109         self.assertEqual(self.set, set([2, 3, 5, 6]))

Here is the call graph for this function:

Definition at line 1102 of file test_set.py.

01102 
01103     def test_sym_difference_non_overlap(self):
01104         self.set ^= set([8])
01105         self.assertEqual(self.set, set([2, 4, 6, 8]))

Here is the call graph for this function:

Definition at line 1098 of file test_set.py.

01098 
01099     def test_sym_difference_overlap(self):
01100         self.set ^= set((3, 4, 5))
01101         self.assertEqual(self.set, set([2, 3, 5, 6]))

Here is the call graph for this function:

Definition at line 1090 of file test_set.py.

01090 
01091     def test_sym_difference_subset(self):
01092         self.set ^= set((2, 4))
01093         self.assertEqual(self.set, set([6]))

Here is the call graph for this function:

Definition at line 1094 of file test_set.py.

01094 
01095     def test_sym_difference_superset(self):
01096         self.set ^= set((2, 4, 6, 8))
01097         self.assertEqual(self.set, set([8]))

Here is the call graph for this function:

Definition at line 1066 of file test_set.py.

01066 
01067     def test_union_method_call(self):
01068         self.set.update(set([3, 4, 5]))
01069         self.assertEqual(self.set, set([2, 3, 4, 5, 6]))

Here is the call graph for this function:

Definition at line 1062 of file test_set.py.

01062 
01063     def test_union_non_overlap(self):
01064         self.set |= set([8])
01065         self.assertEqual(self.set, set([2, 4, 6, 8]))

Here is the call graph for this function:

Definition at line 1058 of file test_set.py.

01058 
01059     def test_union_overlap(self):
01060         self.set |= set([3, 4, 5])
01061         self.assertEqual(self.set, set([2, 3, 4, 5, 6]))

Here is the call graph for this function:

Definition at line 1050 of file test_set.py.

01050 
01051     def test_union_subset(self):
01052         self.set |= set([2])
01053         self.assertEqual(self.set, set((2, 4, 6)))

Here is the call graph for this function:

Definition at line 1054 of file test_set.py.

01054 
01055     def test_union_superset(self):
01056         self.set |= set([2, 4, 6, 8])
01057         self.assertEqual(self.set, set([2, 4, 6, 8]))

Here is the call graph for this function:


Member Data Documentation

Definition at line 1048 of file test_set.py.


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