def test_should_handle_locations_with_spaces(self): path = "subdir with spaces/lunch_at_dave-1.jpg" info = reader.get_exifs(path) self.assertItemsEqual(info.keys(), [path]) self.assertTrue("keywords" in info[path])
def test_should_return_tags_for_just_one_image(self): info = reader.get_exifs(["IMG_6868.jpg"]) self.assertItemsEqual(info.keys(), ["IMG_6868.jpg"]) self.assertTrue("person_in_image" in info["IMG_6868.jpg"])
def test_should_handle_string_value(self): info = reader.get_exifs("IMG_6868.jpg") self.assertItemsEqual(info.keys(), ["IMG_6868.jpg"]) self.assertTrue("person_in_image" in info["IMG_6868.jpg"])
def run_exiftool(self, image_relative_paths): return reader.get_exifs(image_relative_paths)
def test_should_return_tags_for_all_images(self): info = reader.get_exifs(["IMG_6868.jpg", "IMG_3277.jpg"]) self.assertItemsEqual(info.keys(), ["IMG_6868.jpg", "IMG_3277.jpg"]) self.assertTrue("person_in_image" in info["IMG_6868.jpg"]) self.assertFalse("person_in_image" in info["IMG_3277.jpg"])
def test_should_handle_locations_with_spaces(self): path = 'subdir with spaces/lunch_at_dave-1.jpg' info = reader.get_exifs(path) self.assertItemsEqual(info.keys(), [path]) self.assertTrue('keywords' in info[path])
def test_should_handle_string_value(self): info = reader.get_exifs('IMG_6868.jpg') self.assertItemsEqual(info.keys(), ['IMG_6868.jpg']) self.assertTrue('person_in_image' in info['IMG_6868.jpg'])
def test_should_return_tags_for_just_one_image(self): info = reader.get_exifs(['IMG_6868.jpg']) self.assertItemsEqual(info.keys(), ['IMG_6868.jpg']) self.assertTrue('person_in_image' in info['IMG_6868.jpg'])
def test_should_return_tags_for_all_images(self): info = reader.get_exifs(['IMG_6868.jpg', 'IMG_3277.jpg']) self.assertItemsEqual(info.keys(), ['IMG_6868.jpg', 'IMG_3277.jpg']) self.assertTrue('person_in_image' in info['IMG_6868.jpg']) self.assertFalse('person_in_image' in info['IMG_3277.jpg'])