consider word capitilized only if it is camel case - not all upper case

This commit is contained in:
Sergey Obukhov
2016-07-19 16:22:04 -07:00
parent 7cdd7a8f35
commit a21ccdb21b
5 changed files with 2504 additions and 2670 deletions

View File

@@ -77,6 +77,31 @@ def test_basic():
signature.extract(msg_body, 'Sergey'))
def test_capitalized():
msg_body = """Hi Mary,
Do you still need a DJ for your wedding? I've included a video demo of one of our DJs available for your wedding date.
DJ Doe
http://example.com
Password: SUPERPASSWORD
Would you like to check out more?
At your service,
John Smith
Doe Inc
555-531-7967"""
sig = """John Smith
Doe Inc
555-531-7967"""
eq_(sig, signature.extract(msg_body, 'Doe')[1])
def test_over_2_text_lines_after_signature():
body = """Blah