示例#1
0
 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)
示例#2
0
 def test_dict(self):
     self.assertEqual([{'a': 1}], as_list({'a': 1}))
示例#3
0
 def test_list(self):
     # expect
     self.assertEqual([2], as_list([2]))
示例#4
0
 def test_scalar(self):
     # expect
     self.assertEqual([1], as_list(1))
示例#5
0
 def test_none(self):
     # expect
     self.assertEqual(None, as_list(None))