def METHOD_NAME(self):
    self.assertRaises(TypeError, self.stats.sort_stats,
                      'calls',
                      SortKey.TIME)
    self.assertRaises(TypeError, self.stats.sort_stats,
                      SortKey.TIME,
                      'calls')