@inlineCallbacks
def test_inbound_with_unknown_provider(self):
    (yield self.get_transport({'provider_mappings': {'Camelot': 'camelot'}}))
    ussd_string = '*1234#'
    with LogCatcher() as lc:
        d = self.tx_helper.mk_request(request=ussd_string, provider='Tim')
        [msg] = (yield self.tx_helper.wait_for_dispatched_inbound(1))
    self.assertTrue(("No mapping exists for provider 'Tim', using 'Tim' as a fallback" in lc.messages()))
    self.assert_inbound_message(msg, session_event=TransportUserMessage.SESSION_NEW, to_addr=ussd_string, content=None, provider='Tim')
    self.tx_helper.dispatch_outbound(msg.reply('I... am an enchanter'))
    (yield d)
@inlineCallbacks
def test_inbound_with_unknown_provider(self):
    (yield self.get_transport({'provider_mappings': {'Camelot': 'camelot'}}))
    ussd_string = '*1234#'
    with LogCatcher() as lc:
        d = self.tx_helper.mk_request(request=ussd_string, provider='Tim')
        [msg] = (yield self.tx_helper.wait_for_dispatched_inbound(1))
    self.assertTrue(("No mapping exists for provider 'Tim', using 'Tim' as a fallback" in lc.messages()))
    self.assert_inbound_message(msg, session_event=TransportUserMessage.SESSION_NEW, to_addr=ussd_string, content=None, provider='Tim')
    self.tx_helper.dispatch_outbound(msg.reply('I... am an enchanter'))
    (yield d)