def testGetInstance(self):
    mock_api = MagicMock(name='Mock Google Client API')
    self.gce_api.GetApi = MagicMock(return_value=mock_api)

    instance_info = self.gce_api.GetInstance('instance-name')

    self.assertEqual(1, self.gce_api.GetApi.call_count)
    mock_api.instances.return_value.get.assert_called_once_with(
        project='project-name', zone='zone-name', instance='instance-name')
    (mock_api.instances.return_value.get.return_value.execute.
     assert_called_once_with())
    self.assertEqual(mock_api.instances.return_value.get.return_value.
                     execute.return_value,
                     instance_info)
Sample from a uniform distribution between low and high.
dataset/ETHPy150Open GoogleCloudPlatform/Solutions-Using-ETL-tool-on-Google-Compute-Engine/gce_api_test.py/GceApiTest.testGetInstance--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/raw_random.py/uniform