AIFDR/risk_in_a_box — Issue #127: 4 failures, 1 error in test suite.
Author: uniomni
Created: 2012-03-09 04:38:03+00:00
State: open

I got these errors in master when I pulled this morning:
Most of them to do with unexpected hashes. I don't know what this is about.
-o

======================================================================
ERROR: Vector and Raster instances have a similar API
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nielso/sandpit/risk_in_a_box/storage/test_io.py", line 1048, in test_layer_API
assert same_API(V, R, exclude=exclude)
File "/home/nielso/sandpit/risk_in_a_box/storage/utilities_test.py", line 72, in same_API
_same_API(X, Y, exclude=exclude)
File "/home/nielso/sandpit/risk_in_a_box/storage/utilities_test.py", line 60, in _same_API
msg = 'Method %s of %s was not found in %s' % (name, X, Y)
File "/home/nielso/sandpit/risk_in_a_box/storage/vector.py", line 146, in __str__
len(self),
File "/home/nielso/sandpit/risk_in_a_box/storage/vector.py", line 154, in __len__
return len(self.geometry)
TypeError: object of type 'NoneType' has no len()

======================================================================
FAIL: Test we can add a class to the map legend.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nielso/sandpit/risk_in_a_box/gui/test_riabmap.py", line 153, in test_addClassToLegend
assertHashForFile(myExpectedHash, myPath)
File "/home/nielso/sandpit/risk_in_a_box/gui/utilities_test.py", line 35, in assertHashForFile
assert myHash == theHash, myMessage
AssertionError: Unexpected hash
Got: 1e103117c371a5db474bf9516c72f88c
Expected: 5fe2c1748d974fbb49ddb513208e242b

======================================================================
FAIL: Getting a legend for a generic layer works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nielso/sandpit/risk_in_a_box/gui/test_riabmap.py", line 87, in test_getLegend
assertHashForFile(myExpectedHash, myPath)
File "/home/nielso/sandpit/risk_in_a_box/gui/utilities_test.py", line 35, in assertHashForFile
assert myHash == theHash, myMessage
AssertionError: Unexpected hash
Got: f6c8430e50da06d3d7034d6f01bc2129
Expected: 5e67f182a7e8f0d065c32cbebcef8561

======================================================================
FAIL: Getting a legend for a raster layer works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nielso/sandpit/risk_in_a_box/gui/test_riabmap.py", line 111, in test_getRasterLegend
assertHashForFile(myExpectedHash, myPath)
File "/home/nielso/sandpit/risk_in_a_box/gui/utilities_test.py", line 35, in assertHashForFile
assert myHash == theHash, myMessage
AssertionError: Unexpected hash
Got: 769447bb0e8312f56fa83c660968f278
Expected: 1a47a474981fc1acfae8e751e5afe5f0
-------------------- >> begin captured stdout << ---------------------
Source: /home/nielso/sandpit/riab_test_data/test_floodimpact.tif
Value: 2.0 Label Low
Value: 5.0 Label
Value: 10.0 Label
Value: 20.0 Label
Value: 50.0 Label Medium
Value: 100.0 Label
Value: 200.0 Label
Value: 300.0 Label High

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: Getting a legend for a vector layer works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nielso/sandpit/risk_in_a_box/gui/test_riabmap.py", line 99, in test_getVectorLegend
assertHashForFile(myExpectedHash, myPath)
File "/home/nielso/sandpit/risk_in_a_box/gui/utilities_test.py", line 35, in assertHashForFile
assert myHash == theHash, myMessage
AssertionError: Unexpected hash
Got: f6c8430e50da06d3d7034d6f01bc2129
Expected: 5e67f182a7e8f0d065c32cbebcef8561