Esempio n. 1
0
    def test_getAutomationIndicators_vacation(self):
        mailin = self._makeOne()
        message = DummyMessage()
        message.subject = 'Out of Office AutoReply'

        info = mailin.getAutomationIndicators(message)
        self.assertEqual(info['error'], 'vacation message')
Esempio n. 2
0
    def test_getAutomationIndicators_auto_submitted(self):
        mailin = self._makeOne()
        message = DummyMessage()
        setattr(message, 'auto-submitted', 'auto-generated')

        info = mailin.getAutomationIndicators(message)
        self.assertEqual(info['error'], 'Auto-Submitted: auto-generated')
Esempio n. 3
0
    def test_getAutomationIndicators_precedence(self):
        mailin = self._makeOne()
        message = DummyMessage()
        message.precedence = 'bulk'

        info = mailin.getAutomationIndicators(message)
        self.assertEqual(info['error'], 'Precedence: bulk')
Esempio n. 4
0
    def test_getAutomationIndicators_vacation(self):
        mailin = self._makeOne()
        message = DummyMessage()
        message.subject = 'Out of Office AutoReply'

        info = mailin.getAutomationIndicators(message)
        self.assertEqual(info['error'], 'vacation message')
Esempio n. 5
0
    def test_getAutomationIndicators_auto_submitted(self):
        mailin = self._makeOne()
        message = DummyMessage()
        setattr(message, 'auto-submitted', 'auto-generated')

        info = mailin.getAutomationIndicators(message)
        self.assertEqual(info['error'], 'Auto-Submitted: auto-generated')
Esempio n. 6
0
    def test_getAutomationIndicators_precedence(self):
        mailin = self._makeOne()
        message = DummyMessage()
        message.precedence = 'bulk'

        info = mailin.getAutomationIndicators(message)
        self.assertEqual(info['error'], 'Precedence: bulk')