Lines Matching refs:Counted
1094 class Counted(object): class
1097 Counted.counter += 1
1099 Counted.counter -= 1
1103 x.a = Counted()
1104 x.b = Counted()
1105 x.c = Counted()
1106 self.assertEqual(Counted.counter, 3)
1109 self.assertEqual(Counted.counter, 0)
1113 x.a = Counted()
1114 x.z = Counted()
1115 self.assertEqual(Counted.counter, 2)
1118 self.assertEqual(Counted.counter, 0)
1122 x.a = Counted()
1123 x.z = Counted()
1124 x.e = Counted()
1125 self.assertEqual(Counted.counter, 3)
1128 self.assertEqual(Counted.counter, 0)
1134 s.a = [Counted(), s]
1135 self.assertEqual(Counted.counter, 1)
1138 self.assertEqual(Counted.counter, 0)