def testDescribe(self): self.assertEqual(dashboard_service.Describe('my_test'), 'OK') self.mock_request.assert_called_once_with( dashboard_service.SERVICE_URL + '/describe', method='POST', params={'test_suite': 'my_test'}, use_auth=True)
def IterSystemHealthBots(): description = dashboard_service.Describe('memory.top_10_mobile') for bot in description['bots']: if 'Internal' not in bot: continue if 'low-end' in bot or '512' in bot: continue yield bot.replace(':', '/')
def GetEmergingMarketStories(): description = dashboard_service.Describe('system_health.memory_mobile') return description['caseTags']['emerging_market']