Coverage for src\zapy\test\test_case.py: 64%

9 statements  

« prev     ^ index     » next       coverage.py v7.3.4, created at 2023-12-20 14:17 -0500

1import unittest 

2 

3from httpx import Request, Response 

4 

5 

6class TestCase(unittest.TestCase): 

7 

8 httpx_args: dict 

9 request: Request 

10 response: Response 

11 

12 def assertBetween(self, x, lo, hi): 

13 if not (lo <= x <= hi): 

14 raise AssertionError(f'{x} not between {lo} and {hi}')