(self)
| 73 | stats.load_stats(42) |
| 74 | |
| 75 | def test_sort_stats_int(self): |
| 76 | valid_args = {-1: 'stdname', |
| 77 | 0: 'calls', |
| 78 | 1: 'time', |
| 79 | 2: 'cumulative'} |
| 80 | for arg_int, arg_str in valid_args.items(): |
| 81 | self.stats.sort_stats(arg_int) |
| 82 | self.assertEqual(self.stats.sort_type, |
| 83 | self.stats.sort_arg_dict_default[arg_str][-1]) |
| 84 | |
| 85 | def test_sort_stats_string(self): |
| 86 | for sort_name in ['calls', 'ncalls', 'cumtime', 'cumulative', |
nothing calls this directly
no test coverage detected