コード例 #1
0
    def test_to_addresses_none(self, m_eU):
        'Test that we get the default To address'
        e = ['*****@*****.**', ]
        m_eU().get_delivery_addresses.return_value = e
        ms = MessageSender(MagicMock(), MagicMock())
        r = ms.to_addresses(None)

        self.assertEqual(e, r)
コード例 #2
0
    def test_to_addresses(self):
        ms = MessageSender(MagicMock(), MagicMock())
        e = [
            '*****@*****.**',
        ]
        r = ms.to_addresses(e)

        self.assertEqual(e, r)
コード例 #3
0
    def test_to_addresses_none(self, m_eU):
        'Test that we get the default To address'
        e = [
            '*****@*****.**',
        ]
        m_eU().get_delivery_addresses.return_value = e
        ms = MessageSender(MagicMock(), MagicMock())
        r = ms.to_addresses(None)

        self.assertEqual(e, r)
コード例 #4
0
    def test_to_addresses(self):
        ms = MessageSender(MagicMock(), MagicMock())
        e = ['*****@*****.**', ]
        r = ms.to_addresses(e)

        self.assertEqual(e, r)