def setUp(self): self.scheduler = RoundRobinScheduler( ['wwx6xhe8aQncZZUm7QsIPXKI', '9ea66EnDo1YLFuzu5QDDp4zU']) self.location_api = LocationApi(self.scheduler)
def setUp(self): self.scheduler = RoundRobinScheduler( ['wwx6xhe8aQncZZUm7QsIPXKI', '9ea66EnDo1YLFuzu5QDDp4zU']) self.transform_api = TransformApi(self.scheduler)
def test_next_with_empty_aks(self): scheduler = RoundRobinScheduler([]) with self.assertRaises(ParamError): scheduler.next()
def test_next_with_correct_aks(self): scheduler = RoundRobinScheduler( ['wwx6xhe8aQncZZUm7QsIPXKI', '9ea66EnDo1YLFuzu5QDDp4zU']) self.assertEqual(scheduler.next(), 'wwx6xhe8aQncZZUm7QsIPXKI') self.assertEqual(scheduler.next(), '9ea66EnDo1YLFuzu5QDDp4zU') self.assertEqual(scheduler.next(), 'wwx6xhe8aQncZZUm7QsIPXKI')
def setUp(self): self.scheduler = RoundRobinScheduler( ['wwx6xhe8aQncZZUm7QsIPXKI', '9ea66EnDo1YLFuzu5QDDp4zU']) self.place_api = PlaceApi(self.scheduler)