コード例 #1
0
 def test_to_url_error(self):
     instance = UUIDConverter(self.app.url_map)
     with self.assertRaises(ValidationError):
         instance.to_url("")
コード例 #2
0
 def test_to_url_error(self):
     instance = UUIDConverter(self.app.url_map)
     with self.assertRaises(ValidationError):
         instance.to_url("")
コード例 #3
0
 def test_to_url_bytes(self):
     value = uuid.uuid4()
     instance = UUIDConverter(self.app.url_map)
     self.assertEqual(instance.to_url(value.bytes), str(value))
コード例 #4
0
 def test_to_url_bytes(self):
     value = uuid.uuid4()
     instance = UUIDConverter(self.app.url_map)
     self.assertEqual(instance.to_url(value.bytes), str(value))