def __init__(self): MockDevice.__init__(self) self.last_cmd = None self.retried = []
def __init__(self): MockDevice.__init__(self) self.useful_errors = False
def __init__(self): MockDevice.__init__(self) MockDevice.model = "TC35i" MockDevice.wind_called = False MockDevice.cgmm_called = False
def testWritesNothingDuringInit(self): """Nothing is written to the modem during __init__""" device = MockDevice() gsm = pygsm.GsmModem(device=device) self.assertEqual(device.buf_write, [])