  def testGetVolumeById(self, mock_list_volumes):
    """Test that a volume of an account can be found by its ID."""
    mock_list_volumes.return_value = aws_mocks.MOCK_LIST_VOLUMES
    found_volume = aws_mocks.FAKE_AWS_ACCOUNT.ebs.GetVolumeById(
        aws_mocks.FAKE_VOLUME.volume_id)
    self.assertIsInstance(found_volume, ebs.AWSVolume)
    self.assertEqual('fake-volume-id', found_volume.volume_id)
    self.assertEqual('fake-zone-2', found_volume.region)
    self.assertEqual('fake-zone-2b', found_volume.availability_zone)
Test that a volume of an account can be found by its ID.
tests/providers/aws/internal/test_ebs.py