示例#1
0
 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'))
示例#2
0
 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'))
示例#3
0
 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"))