Пример #1
0
 def __init__(self):
     MockDevice.__init__(self)
     self.last_cmd = None
     self.retried = []
Пример #2
0
 def __init__(self):
     MockDevice.__init__(self)
     self.useful_errors = False
Пример #3
0
 def __init__(self):
     MockDevice.__init__(self)
     MockDevice.model = "TC35i"
     MockDevice.wind_called = False
     MockDevice.cgmm_called = False
Пример #4
0
 def __init__(self):
     MockDevice.__init__(self)
     self.last_cmd = None
     self.retried = []
Пример #5
0
 def __init__(self):
     MockDevice.__init__(self)
     self.useful_errors = False
Пример #6
0
    def testWritesNothingDuringInit(self):
        """Nothing is written to the modem during __init__"""

        device = MockDevice()
        gsm = pygsm.GsmModem(device=device)
        self.assertEqual(device.buf_write, [])