Lines Matching refs:Counted
1211 class Counted(object): class
1214 Counted.counter += 1
1216 Counted.counter -= 1
1220 x.a = Counted()
1221 x.b = Counted()
1222 x.c = Counted()
1223 self.assertEqual(Counted.counter, 3)
1226 self.assertEqual(Counted.counter, 0)
1230 x.a = Counted()
1231 x.z = Counted()
1232 self.assertEqual(Counted.counter, 2)
1235 self.assertEqual(Counted.counter, 0)
1239 x.a = Counted()
1240 x.z = Counted()
1241 x.e = Counted()
1242 self.assertEqual(Counted.counter, 3)
1245 self.assertEqual(Counted.counter, 0)
1251 s.a = [Counted(), s]
1252 self.assertEqual(Counted.counter, 1)
1255 self.assertEqual(Counted.counter, 0)