Searched refs:most_recent_n (Results 1 – 2 of 2) sorted by relevance
947 self.assertEqual([], self._cmd_hist.most_recent_n(3))952 self.assertEqual(["node_info node_a"], self._cmd_hist.most_recent_n(1))954 self._cmd_hist.most_recent_n(2))956 self._cmd_hist.most_recent_n(3))960 self.assertEqual(["node_info node_b"], self._cmd_hist.most_recent_n(1))962 self._cmd_hist.most_recent_n(2))964 self._cmd_hist.most_recent_n(3))966 self._cmd_hist.most_recent_n(4))971 self.assertEqual(["node_info node_a"], self._cmd_hist.most_recent_n(1))973 self._cmd_hist.most_recent_n(2))[all …]
1081 def most_recent_n(self, n): member in CommandHistory