Browse Source

[1542] Fix check_code

Michal 'vorner' Vaner 13 years ago
parent
commit
cd78ecd9fb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/bin/bind10/tests/bind10_test.py.in

+ 2 - 1
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.