예제 #1
0
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')
예제 #2
0
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')
예제 #3
0
 def setUp(self):
     email_text = open(sample_email).read() % 'someuuid'
     self.parser = CommEmailParser(email_text)
예제 #4
0
 def setUp(self):
     email_text = open(sample_email).read() % 'someuuid'
     self.parser = CommEmailParser(email_text)