Ejemplo n.º 1
0
 def testGetMgmt98(self):
     mgmt = MockCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     self.assertEqual(mgmt98.ParameterKey, mgmt.ParameterKey)
     self.assertEqual(mgmt98.EnableCWMP, mgmt.EnableCWMP)
     self.assertTrue(mgmt98.UpgradesManaged)
     mgmt98.ValidateExports()
Ejemplo n.º 2
0
 def testSetMgmt98(self):
     mgmt = MockCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     self.assertEqual(mgmt.CWMPRetryIntervalMultiplier, 1)
     self.assertEqual(mgmt98.CWMPRetryIntervalMultiplier, 1)
     mgmt98.CWMPRetryIntervalMultiplier = 2
     self.assertEqual(mgmt.CWMPRetryIntervalMultiplier, 2)
     self.assertEqual(mgmt98.CWMPRetryIntervalMultiplier, 2)
Ejemplo n.º 3
0
 def testGetMgmt98(self):
     mgmt = MakeCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     self.assertEqual(mgmt98.ParameterKey, mgmt.ParameterKey)
     self.assertEqual(mgmt98.EnableCWMP, mgmt.EnableCWMP)
     self.assertTrue(mgmt98.UpgradesManaged)
     self.assertFalse(mgmt98.STUNEnable)
     tr.handle.ValidateExports(mgmt98)
Ejemplo n.º 4
0
 def testSetMgmt98(self):
     mgmt = MakeCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     self.assertEqual(mgmt.CWMPRetryIntervalMultiplier, 1)
     self.assertEqual(mgmt98.CWMPRetryIntervalMultiplier, 1)
     mgmt98.CWMPRetryIntervalMultiplier = 2
     self.assertEqual(mgmt.CWMPRetryIntervalMultiplier, 2)
     self.assertEqual(mgmt98.CWMPRetryIntervalMultiplier, 2)
     self.assertRaises(AttributeError, setattr, mgmt98,
                       'ManageableDeviceNumberOfEntries', 1)
     self.assertRaises(AttributeError, setattr, mgmt98,
                       'EmbeddedDeviceNumberOfEntries', 2)
     self.assertRaises(AttributeError, setattr, mgmt98,
                       'VirtualDeviceNumberOfEntries', 4)
Ejemplo n.º 5
0
 def testTransactions98(self):
     mgmt = MockCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     self.TransactionTester(mgmt98)
Ejemplo n.º 6
0
 def testDelMgmt98(self):
     mgmt = MockCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     delattr(mgmt98, 'CWMPRetryIntervalMultiplier')
     self.assertFalse(hasattr(mgmt, 'CWMPRetryIntervalMultiplier'))