def test_set_prefix(self):
     """set prefix and see if it is there
     """
     askbot_settings.update('EMAIL_SUBJECT_PREFIX', 'test prefix')
     subj = mail.prefix_the_subject_line('hahah')
     self.assertEquals(subj, 'test prefix hahah')
 def test_set_prefix(self):
     """set prefix and see if it is there
     """
     askbot_settings.update('EMAIL_SUBJECT_PREFIX', 'test prefix')
     subj = mail.prefix_the_subject_line('hahah')
     self.assertEquals(subj, 'test prefix hahah')
 def test_can_disable_prefix(self):
     """set prefix to empty string and make sure
     that the subject line is not altered"""
     askbot_settings.update('EMAIL_SUBJECT_PREFIX', '')
     subj = mail.prefix_the_subject_line('hahah')
     self.assertEquals(subj, 'hahah')
 def test_can_disable_prefix(self):
     """set prefix to empty string and make sure
     that the subject line is not altered"""
     askbot_settings.update('EMAIL_SUBJECT_PREFIX', '')
     subj = mail.prefix_the_subject_line('hahah')
     self.assertEquals(subj, 'hahah')