MCPcopy Create free account
hub / github.com/Kaggle/docker-python / TestGcloud

Class TestGcloud

tests/test_gcloud.py:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import unittest
4
5class TestGcloud(unittest.TestCase):
6 def test_version(self):
7 result = subprocess.run([
8 'gcloud',
9 '--version',
10 ],
11 stdout=subprocess.PIPE,
12 stderr=subprocess.PIPE,
13 )
14
15 print("gloud version: ", result)
16
17 self.assertEqual(0, result.returncode)
18 self.assertIn(b'Google Cloud SDK', result.stdout)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected