Skip to content

Commit 297e31b

Browse files
committed
Check variable
1 parent 81321b5 commit 297e31b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/providers/gcp/internal/test_compute.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ def testGetOrCreateAnalysisVmWithMachineType(self, mock_create_from_args, mock_g
440440
vm, created = gcp_mocks.FAKE_ANALYSIS_PROJECT.compute.GetOrCreateAnalysisVm(
441441
gcp_mocks.FAKE_ANALYSIS_VM.name, machine_type='custom-machine-type')
442442

443+
mock_get_instance.assert_called_with(gcp_mocks.FAKE_ANALYSIS_VM.name)
444+
self.assertIsInstance(vm, compute.GoogleComputeInstance)
443445
self.assertTrue(created)
444446
mock_create_from_args.assert_called_once()
445447
args, _ = mock_create_from_args.call_args

0 commit comments

Comments
 (0)