def METHOD_NAME(self):
    """
    Should not be able to create a new custom image whose name is the same
    as a custom image in this project
    """
    # create the image
    custom_image_name = 'doh-image'
    self._create_custom_image(custom_image_name)
    self.wait_until_visible('#image-created-notification')
    self._check_for_custom_image(custom_image_name)
    # try to create an image with the same name
    self._create_custom_image(custom_image_name)
    element = self.wait_until_visible('#invalid-name-help')
    expected = 'An image with this name already exists in this project'
    self.assertRegexpMatches(element.text.strip(), expected)