"""Check demo server sentences split as expected"""
print("\n > Testing demo server sentence splitting")
# pylint: disable=attribute-defined-outside-init
self.seg=Synthesizer.get_segmenter("en")
sis=Synthesizer.split_into_sentences
assertsis(self,'Hello. Two sentences')==['Hello.','Two sentences']
assertsis(self,'He went to meet the adviser from Scott, Waltman & Co. next morning.')==['He went to meet the adviser from Scott, Waltman & Co. next morning.']
assertsis(self,'Let\'s run it past Sarah and co. They\'ll want to see this.')==['Let\'s run it past Sarah and co.','They\'ll want to see this.']
assertsis(self,'Where is Bobby Jr.\'s rabbit?')==['Where is Bobby Jr.\'s rabbit?']
assertsis(self,'Please inform the U.K. authorities right away.')==['Please inform the U.K. authorities right away.']
assertsis(self,'Were David and co. at the event?')==['Were David and co. at the event?']
assertsis(self,'paging dr. green, please come to theatre four immediately.')==['paging dr. green, please come to theatre four immediately.']
assertsis(self,'The email format is Firstname.Lastname@example.com. I think you reversed them.')==['The email format is Firstname.Lastname@example.com.','I think you reversed them.']
assertsis(self,'The demo site is: https://top100.example.com/subsection/latestnews.html. Please send us your feedback.')==['The demo site is: https://top100.example.com/subsection/latestnews.html.','Please send us your feedback.']
assertsis(self,'Scowling at him, \'You are not done yet!\' she yelled.')==['Scowling at him, \'You are not done yet!\' she yelled.']# with the final lowercase "she" we see it's all one sentence
assertsis(self,'Hey!! So good to see you.')==['Hey!!','So good to see you.']
assertsis(self,'He went to Yahoo! but I don\'t know the division.')==['He went to Yahoo! but I don\'t know the division.']
assertsis(self,'If you can\'t remember a quote, “at least make up a memorable one that\'s plausible..."')==['If you can\'t remember a quote, “at least make up a memorable one that\'s plausible..."']
assertsis(self,'The address is not google.com.')==['The address is not google.com.']
assertsis(self,'1.) The first item 2.) The second item')==['1.) The first item','2.) The second item']
assertsis(self,'1) The first item 2) The second item')==['1) The first item','2) The second item']
assertsis(self,'a. The first item b. The second item c. The third list item')==['a. The first item','b. The second item','c. The third list item']