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()
 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)
Exemple #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)
Exemple #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)
 def testTransactions98(self):
     mgmt = MockCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     self.TransactionTester(mgmt98)
 def testDelMgmt98(self):
     mgmt = MockCpeManagementServer()
     mgmt98 = management_server.ManagementServer98(mgmt)
     delattr(mgmt98, 'CWMPRetryIntervalMultiplier')
     self.assertFalse(hasattr(mgmt, 'CWMPRetryIntervalMultiplier'))