'Override base class which verifies that errors are not raised when
constructing mandatory profiles but also add a check that we
have created the correct volume type for each profile.'

def test_profile_respected(self):

    for profile in (c.value for c in MandatoryProfiles.iterconstants()):
        dataset_id = uuid4()
        self.addCleanup(detach_destroy_volumes, self.api)
        new_volume = self.api.create_volume_with_profile(dataset_id=dataset_id, size=self.dataset_size, profile_name=profile)
        if (profile in (MandatoryProfiles.GOLD.value, MandatoryProfiles.SILVER.value)):
            expected_disk_type = GCEDiskTypes.SSD
        else:
            expected_disk_type = GCEDiskTypes.STANDARD
        disk = self.api._operations.get_disk_details(new_volume.blockdevice_id)
        actual_disk_type = disk['type']
        actual_disk_type = actual_disk_type.split('/')[(-1)]
        self.assertThat(actual_disk_type, Equals(expected_disk_type.value), 'Incorrect    disk    type    for    profile    {}'.format(profile))
