1234567891011121314151617181920212223242526272829303132 |
- import base64
- import unittest
- from pathlib import Path
- from testing.utils import *
- class TestIdCardAddress(unittest.TestCase):
- def _helper(self, image_path):
- root = Path(__file__).parent
- image_path = str(root / image_path)
- r = send_request(image_path, 0)
- self.assertEqual(r['status'], '000', f'{image_path}status case error')
- # 难
- def test_06(self):
- image_path = '../images/false/others/06.jpg'
- self._helper(image_path)
- # 难
- def test_07(self):
- image_path = '../images/false/others/07.jpg'
- self._helper(image_path)
- # 北京市宣武区cpca错误
- def test_cpca(self):
- image_path = '../images/false/others/cpca.png'
- self._helper(image_path)
- def test_long_name(self):
- image_path = '../images/false/others/long_name.png'
- self._helper(image_path)
|