From: Michal 'vorner' Vaner Date: Fri, 27 Jan 2012 12:36:36 +0000 (+0100) Subject: [1542] Fix check_code X-Git-Tag: trac2351_base~273^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd78ecd9fb6d0c59abe3ffab4418add6a7f1173f;p=thirdparty%2Fkea.git [1542] Fix check_code --- diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in index 4771cad58e..018a3b906d 100644 --- a/src/bin/bind10/tests/bind10_test.py.in +++ b/src/bin/bind10/tests/bind10_test.py.in @@ -263,10 +263,11 @@ class TestCacheCommands(unittest.TestCase): """ [rcode, ranswer] = self.__boss._get_socket(args)['result'] self.assertEqual(code, rcode) - if code == 1: + if code != 0: # This should be an error message. The exact formatting # is unknown, but we check it is string at least self.assertTrue(isinstance(ranswer, str)) + def mod_args(name, value): """ Override a parameter in the args.