def _fetch_leaderboard(self, id, state, owner, tag, min_running_time): return self._backend.get_leaderboard_entries( project=self, ids=as_list(id), 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))