diff --git a/virtualpdu/tests/integration/pdu/test_pdu.py b/virtualpdu/tests/integration/pdu/test_pdu.py index ba06ffd..6a00dca 100644 --- a/virtualpdu/tests/integration/pdu/test_pdu.py +++ b/virtualpdu/tests/integration/pdu/test_pdu.py @@ -32,7 +32,7 @@ class TestPDU(PDUTestCase): self.snmp_get, enterprises + (42,)) def test_set_unknown_oid(self): - self.assertEqual(NoSuchInstance(), + self.assertEqual(NoSuchInstance(''), self.snmp_set(enterprises + (42,), univ.Integer(7))) def test_get_valid_oid_wrong_community(self): diff --git a/virtualpdu/tests/unit/test_pysnmp_handler.py b/virtualpdu/tests/unit/test_pysnmp_handler.py index 1ef7f92..3537098 100644 --- a/virtualpdu/tests/unit/test_pysnmp_handler.py +++ b/virtualpdu/tests/unit/test_pysnmp_handler.py @@ -108,7 +108,7 @@ class SnmpServiceMessageReceivedTest(unittest.TestCase): varbindlist = message[PDUs][ResponsePDU][VarBindList] self.assertEqual(varbindlist[0][ObjectName].value, (1, 1)) self.assertEqual(varbindlist[0][NoSuchInstance].value, - NoSuchInstance()) + NoSuchInstance('')) def test_get(self): self.pdu_mock.oid_mapping[(1, 1)] = Mock() diff --git a/virtualpdu/tests/unit/test_snmp_client.py b/virtualpdu/tests/unit/test_snmp_client.py index bc4536e..eefbe01 100644 --- a/virtualpdu/tests/unit/test_snmp_client.py +++ b/virtualpdu/tests/unit/test_snmp_client.py @@ -121,10 +121,10 @@ class TestSnmpClient(base.TestCase): def test_set_no_such_instance(self): oid = (1, 3, 6) self.command_generator_mock.setCmd.return_value = \ - (None, 0, 0, [(oid, NoSuchInstance())]) + (None, 0, 0, [(oid, NoSuchInstance(''))]) value = self.snmp_client.set(oid, '43 thousands') - self.assertEqual(NoSuchInstance(), value) + self.assertEqual(NoSuchInstance(''), value) self.oneliner_cmdgen.UdpTransportTarget \ .assert_called_with((sentinel.hostname, sentinel.port),