def test_from_address(self): 'Test we get the From address when asked' ms = MessageSender(MagicMock(), MagicMock()) e = '*****@*****.**' r = ms.from_address(e) self.assertEqual(e, r)
def test_from_address(self): 'Test we get the From address when asked' ms = MessageSender(MagicMock(), MagicMock()) e = '*****@*****.**' r = ms.from_address(e) self.assertEqual(e, r)
def test_from_address_none(self, m_sI): 'Test that we get the default From address' e = '*****@*****.**' m_sI().get_support_email.return_value = e ms = MessageSender(MagicMock(), MagicMock()) r = ms.from_address(None) self.assertEqual(e, r)
def test_from_address_none(self, m_sI): 'Test that we get the default From address' e = '*****@*****.**' m_sI().get_support_email.return_value = e ms = MessageSender(MagicMock(), MagicMock()) r = ms.from_address(None) self.assertEqual(e, r)