class TestEmailParser(TestCase): def setUp(self): email_text = open(sample_email).read() % 'someuuid' self.parser = CommEmailParser(email_text) def test_uuid(self): eq_(self.parser.get_uuid(), 'someuuid') def test_body(self): eq_(self.parser.get_body(), 'This is the body')
def setUp(self): email_text = open(sample_email).read() % 'someuuid' self.parser = CommEmailParser(email_text)