Lines Matching full:stats
35 self.stats = b.get_table("stats", Key, Leaf)
40 #for key, leaf in self.stats.items():
43 key = self.stats.Key(IPAddress("172.16.1.2").value, IPAddress("172.16.1.1").value)
44 leaf = self.stats[key]
47 del self.stats[key]
49 x = self.stats[key]
51 del self.stats[key]
52 self.stats.clear()
53 self.assertEqual(len(self.stats), 0)
54 self.stats[key] = leaf
55 self.assertEqual(len(self.stats), 1)
56 self.stats.clear()
57 self.assertEqual(len(self.stats), 0)
61 self.stats.clear()
62 self.stats[self.stats.Key()] = self.stats.Leaf(100, 200)
63 x = self.stats.popitem()
64 self.stats[self.stats.Key(10, 20)] = self.stats.Leaf(300, 400)
66 x = self.stats[self.stats.Key()]
67 (_, x) = self.stats.popitem()
70 self.stats.clear()
71 self.assertEqual(len(self.stats), 0)
72 self.stats[self.stats.Key()] = x
73 self.stats[self.stats.Key(0, 1)] = x
74 self.stats[self.stats.Key(0, 2)] = x
75 self.stats[self.stats.Key(0, 3)] = x
76 self.assertEqual(len(self.stats), 4)