コード例 #1
0
 def test_warmup(self):
     """Ensure api.warmup() fetches AuthDB into process-global cache."""
     self.assertFalse(api._auth_db)
     api.warmup()
     self.assertTrue(api._auth_db)
コード例 #2
0
ファイル: api_test.py プロジェクト: maruel/luci-py
 def test_warmup(self):
     """Ensure api.warmup() fetches AuthDB into process-global cache."""
     self.assertFalse(api._auth_db)
     api.warmup()
     self.assertTrue(api._auth_db)