def test_should_return_list_of_identifiers_from_svg_file_filter_by_custom_prefix( self): filename = self.get_test_image_path('test_identifiers2.svg') self.assertEqual(['foo_shape1', 'foo_shape3'], get_shapes_from_svg_image(filename, prefix='foo'))
def test_should_return_empty_list_for_non_svg_file(self): filename = self.get_test_image_path('test.jpg') self.assertEqual([], get_shapes_from_svg_image(filename))
def test_should_return_list_of_identifiers_from_svg_file_with_prefix(self): filename = self.get_test_image_path('test_identifiers_with_prefix.svg') self.assertEqual(['shape1', 'shape2', 'shape3'], get_shapes_from_svg_image(filename))
def test_should_return_empty_list_for_none(self): self.assertEqual([], get_shapes_from_svg_image(None))