def test_parse_reply(self):
     body = get_fixture("email_1_2")
     self.assertEqual(read(body).visible_text(), parse_reply(body))
 def test_do_not_parse_out_send_from_in_regular_sentence(self):
     body = get_fixture("email_sent_from_my_not_signature")
     self.assertEqual(
         "Here is another email\n\nSent from my desk, is much easier then my"
         " mobile phone.", parse_reply(body))
 def test_retains_bullets(self):
     body = get_fixture("email_bullets")
     self.assertEqual(
         "test 2 this should list second\n\nand have spaces\n\nand retain th"
         "is formatting\n\n\n   - how about bullets\n   - and another",
         parse_reply(body))
 def test_parse_out_send_from_multiword_mobile_device(self):
     body = get_fixture("email_multi_word_sent_from_my_mobile_device")
     self.assertEqual("Here is another email", parse_reply(body))
 def test_parse_out_sent_from_BlackBerry(self):
     body = get_fixture("email_BlackBerry")
     self.assertEqual("Here is another email", parse_reply(body))
 def test_parse_out_sent_from_iPhone(self):
     body = get_fixture("email_iPhone")
     self.assertEqual("Here is another email", parse_reply(body))
 def test_parse_out_just_top_for_outlook_with_reply_directly_above_line(
         self):
     body = get_fixture("email_2_2")
     self.assertEqual(
         "Outlook with a reply directly above line", parse_reply(body))
 def test_parse_out_just_top_for_outlook_reply(self):
     body = get_fixture('email_2_1')
     self.assertEqual("Outlook with a reply", parse_reply(body))