diff --git a/tests/test_misc.py b/tests/test_misc.py index 9656c5fa1621ead225ba95513aeb44c564624d8e..0816e071215a88f9c95283aeb0816176fe3034ba 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -26,13 +26,14 @@ @author: tf """ -import caosdb as db -from caosdb import (Container, Info, Property, Record, RecordType, - execute_query, get_connection) from nose.tools import (assert_equal, assert_is_not_none, # @UnresolvedImport - assert_not_equals, assert_raises, assert_true, nottest, + assert_not_equal, assert_raises, assert_true, nottest, with_setup) +import caosdb as db +from caosdb import (Container, Info, Property, Record, RecordType, + execute_query) + def setup(): try: @@ -278,10 +279,10 @@ def test_info(): assert_is_not_none(i.messages["Flags"]) assert_is_not_none(i.messages["Counts"]) assert_is_not_none(i.messages["TransactionBenchmark"]) - assert_not_equals('-1', i.messages["Counts"]["files"]) - assert_not_equals('-1', i.messages["Counts"]["records"]) - assert_not_equals('-1', i.messages["Counts"]["properties"]) - assert_not_equals('-1', i.messages["Counts"]["recordTypes"]) + assert_not_equal('-1', i.messages["Counts"]["files"]) + assert_not_equal('-1', i.messages["Counts"]["records"]) + assert_not_equal('-1', i.messages["Counts"]["properties"]) + assert_not_equal('-1', i.messages["Counts"]["recordTypes"]) assert_equal('true', i.messages["Counts"]["debug"]) # Not necessarily 0, all the temporary directories go here as well. # assert_equal('0', i.messages["Counts"]["tmpfiles"])