def _fetch_leaderboard(self, id, group, state, owner, tag, min_running_time): return self.client.get_leaderboard_entries( namespace=self.namespace, project_name=self.name, ids=as_list(id), group_ids=as_list(group), states=as_list(state), owners=as_list(owner), tags=as_list(tag), min_running_time=min_running_time)
def test_dict(self): self.assertEqual([{'a': 1}], as_list({'a': 1}))
def test_list(self): # expect self.assertEqual([2], as_list([2]))
def test_scalar(self): # expect self.assertEqual([1], as_list(1))
def test_none(self): # expect self.assertEqual(None, as_list(None))