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)
def test_to_addresses(self): ms = MessageSender(MagicMock(), MagicMock()) e = [ '*****@*****.**', ] r = ms.to_addresses(e) self.assertEqual(e, r)
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)
def test_to_addresses(self): ms = MessageSender(MagicMock(), MagicMock()) e = ['*****@*****.**', ] r = ms.to_addresses(e) self.assertEqual(e, r)