Example #1
0
 def test_parse_retry_after(self, value, expected):
     retry = Retry()
     assert retry.parse_retry_after(value) == expected
Example #2
0
 def test_parse_retry_after_invalid(self, value):
     retry = Retry()
     with pytest.raises(InvalidHeader):
         retry.parse_retry_after(value)