tests: python bindings
authorBen McGinnes <ben@adversary.org>
Thu, 27 Sep 2018 00:07:08 +0000 (10:07 +1000)
committerBen McGinnes <ben@adversary.org>
Thu, 27 Sep 2018 00:07:08 +0000 (10:07 +1000)
* Fixed the final assertion to look for what will actually be reported
  in that case instead of something else (i.e. it looks for an
  IMPORT_ERROR status code).

lang/python/tests/t-import.py

index 8d8a699..82d3a4e 100755 (executable)
@@ -82,4 +82,4 @@ try:
     result = c.key_import(b"thisisnotakey")
 except ValueError:
     pass
-assert result.considered == 0
+assert result == "IMPORT_PROBLEM"