diff options
Diffstat (limited to 'python/quote_parsing/tests')
| -rw-r--r-- | python/quote_parsing/tests/__init__.py | 0 | ||||
| -rw-r--r-- | python/quote_parsing/tests/test_cs.py | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/python/quote_parsing/tests/__init__.py b/python/quote_parsing/tests/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/python/quote_parsing/tests/__init__.py diff --git a/python/quote_parsing/tests/test_cs.py b/python/quote_parsing/tests/test_cs.py new file mode 100644 index 00000000..b6988c70 --- /dev/null +++ b/python/quote_parsing/tests/test_cs.py @@ -0,0 +1,8 @@ +from ..parse_emails import subject_cs + + +def test_subject(): + subject1 = "CS CDX HY32 Options - Ref = 107.5" + subject2 = "CS CDX HY31 Options - 01/16/19 Ref = 104.875 trading" + assert subject_cs.match(subject1).groups() == ("HY", "32", "107.5") + assert subject_cs.match(subject2).groups() == ("HY", "31", "104.875") |
