MCPcopy
hub / github.com/donnemartin/saws / test_query_aws_instance_ids

Method test_query_aws_instance_ids

tests/test_resources.py:70–77  ·  view source on GitHub ↗
(self, mock_subprocess)

Source from the content-addressed store, hash-verified

68 @unittest.skip('')
69 @mock.patch('saws.resources.subprocess')
70 def test_query_aws_instance_ids(self, mock_subprocess):
71 instance_ids = self.resources.resource_lists[
72 self.resources.ResourceType.INSTANCE_IDS.value]
73 instance_ids._query_aws(instance_ids.QUERY)
74 mock_subprocess.check_output.assert_called_with(
75 instance_ids.QUERY,
76 universal_newlines=True,
77 shell=True)
78
79 # TODO: Fix mocks
80 @unittest.skip('')

Callers

nothing calls this directly

Calls 1

_query_awsMethod · 0.80

Tested by

no test coverage detected