'Test image compatibility.
Some locations only can handle a group of images, not all of them.
Test you can not create a node with incompatible image-location.'

def test_create_node_specify_wrong_image(self):

    image = NodeImage(3234, 'dummy-image', self.driver)
    location = self.driver.list_locations()[0]
    self.assertRaises(LibcloudError, self.driver.create_node, image=image, location=location)
