def test_sort_img_paths_valid_complex_string_sort_zero(self): img_paths = [ '/test/test/0209_f01_m01_1920.jpg', '/test/test/0209_f01_m01_192.jpg' ] actual = extract_visual_features.sort_img_paths(img_paths) expected = [ '/test/test/0209_f01_m01_192.jpg', '/test/test/0209_f01_m01_1920.jpg' ] self.assertEquals(actual, expected)
def test_sort_img_paths_valid_basic_sort(self): img_paths = [ '/test/test/0209_f01_m01_400.jpg', '/test/test/0209_f01_m01_3000.jpg', '/test/test/0209_f01_m01_24.jpg' ] actual = extract_visual_features.sort_img_paths(img_paths) expected = [ '/test/test/0209_f01_m01_24.jpg', '/test/test/0209_f01_m01_400.jpg', '/test/test/0209_f01_m01_3000.jpg' ] self.assertEquals(actual, expected)
def test_sort_img_paths_valid_complex_string_sort_zero(self): img_paths = ['/test/test/0209_f01_m01_1920.jpg', '/test/test/0209_f01_m01_192.jpg'] actual = extract_visual_features.sort_img_paths(img_paths) expected = ['/test/test/0209_f01_m01_192.jpg', '/test/test/0209_f01_m01_1920.jpg'] self.assertEquals(actual, expected)
def test_sort_img_paths_valid_basic_sort(self): img_paths = ['/test/test/0209_f01_m01_400.jpg', '/test/test/0209_f01_m01_3000.jpg', '/test/test/0209_f01_m01_24.jpg'] actual = extract_visual_features.sort_img_paths(img_paths) expected = ['/test/test/0209_f01_m01_24.jpg', '/test/test/0209_f01_m01_400.jpg','/test/test/0209_f01_m01_3000.jpg'] self.assertEquals(actual, expected)