'Test volume can\'t be created from snapshot with bad volume size.'

def test_create_volume_from_snapshot_fail_bad_size(self):

    volume_api = cinder.volume.api.API()
    snapshot = {'id': fake.SNAPSHOT_ID, 'status': fields.SnapshotStatus.AVAILABLE, 'volume_size': 10}
    snapshot_obj = fake_snapshot.fake_snapshot_obj(self.context, **snapshot)
    self.assertRaises(exception.InvalidInput, volume_api.create, self.context, size=1, name='fake_name', description='fake_desc', snapshot=snapshot_obj)
