'Test mismatched attribute.'

def _do_test_mismatched_attribute(self, attribute, value):

    image_data = ('*' * FIVE_KB)
    headers = minimal_headers('Image1')
    headers[attribute] = value
    path = '/v1/images'
    (response, content) = self.http.request(path, 'POST', headers=headers, body=image_data)
    self.assertEqual(http_client.BAD_REQUEST, response.status)
    images_dir = os.path.join(self.test_dir, 'images')
    image_count = len([name for name in os.listdir(images_dir) if os.path.isfile(os.path.join(images_dir, name))])
    self.assertEqual(0, image_count)
