test_financial_expired.py 247 B

1234567891011
  1. import sys
  2. import pytest
  3. import numpy as np
  4. def test_financial_expired():
  5. match = 'NEP 32'
  6. with pytest.warns(DeprecationWarning, match=match):
  7. func = np.fv
  8. with pytest.raises(RuntimeError, match=match):
  9. func(1, 2, 3)