def test_validate_image_path(self): self.assertTrue(validator.validate_image_path('path/to/file')) self.assertFalse(validator.validate_image_path('/path/to/file')) self.assertFalse(validator.validate_image_path('path'))
def test_validate_image_path(self): self.assertTrue(validator.validate_image_path('path/to/file')) self.assertFalse(validator.validate_image_path('/path/to/file')) self.assertFalse(validator.validate_image_path('path'))
def test_validate_image_path(self): self.assertTrue(validator.validate_image_path("path/to/file")) self.assertFalse(validator.validate_image_path("/path/to/file")) self.assertFalse(validator.validate_image_path("path"))