lizardsystem/lizard-waterbalance — Issue #34: Two unit tests fail
Author: swinkels
Created: 2011-11-17 23:22:20+00:00
State: open

After the latest merge (or maybe even before the latest merge), two unit tests fail. The first one results in the following stack trace:

ERROR: test_retrieve_not_existing_gives_exception (xmlmodel.reader_tests.CoupleParametersWithTimeseriesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pieter/github.com/krw-waternet/src/lizard-waterbalance/xmlmodel/reader_tests.py", line 103, in test_retrieve_not_existing_gives_exception
with self.assertRaises(AttributeError) as cm:
TypeError: failUnlessRaises() takes at least 3 arguments (2 given)

@mfrasca This appears to be some Python 2.7 functionality (and as we all know, we have to build for Python 2.6 :)

The second unit test that fails has the following stack trace:

FAIL: test_validate_reports_missing_properties (xmlmodel.reader_tests.CouplingLogsMismatchesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pieter/github.com/krw-waternet/src/lizard-waterbalance/xmlmodel/reader_tests.py", line 126, in test_validate_reports_missing_properties
self.assertEquals(2, len(self.handler.content))
AssertionError: 2 != 1

This could be the result of botched-up merge...