aboutsummaryrefslogtreecommitdiffstats
path: root/python/quote_parsing/tests/test_cs.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/quote_parsing/tests/test_cs.py')
-rw-r--r--python/quote_parsing/tests/test_cs.py8
1 files changed, 8 insertions, 0 deletions
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")