예제 #1
0
def gw():
    gw = uart.Gateway(mock.MagicMock())
    gw._transport = mock.MagicMock()
    return gw
예제 #2
0
def uart_gw():
    gw = MagicMock(auto_spec=uart.Gateway(MagicMock()))
    return gw