test_extract

./vector/v.extract – test_extract

Test failed

Testtest_extract
Testsuite./vector/v.extract
Test file./vector/v.extract/testsuite/test_extract.py
StatusFAILED
Return code1
Number of tests5
Successful tests2
Failed tests3
Percent successful40%
Test duration0:00:02.031346
Tested modulesv.extract

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FF..F
======================================================================
FAIL: test_cats2 (__main__.TestRasterreport)
Testing cats=2
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.extract/testsuite/test_extract.py", line 73, in test_cats2
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|onemap_pro|PERIMETER|GEOL250_|GEOL250_ID|GEO_NAME|SHAPE_area|SHAPE_len\n1|963738.75|4083.97998|2|1|Zml|963738.608571|4083.979839\n2|22189124|26628.261719|3|2|Zmf|22189123.2296|26628.261112\n3|579286.875|3335.55835|4|3|Zml|579286.829631|3335.557182\n4|20225526|33253|5|4|Zml|20225526.6368|33253.000508\n5|450650720|181803.765625|6|5|Ybgg|450650731.029|181803.776199\n' != u'cat|CLASSE|DESC_UNLIT|CLASSE_INT\n1|11|Calcescisti. (Zona Piemontese, Giurassico-Cretaceo)|11\n2|13|Gneiss minuti. (Massicci del Dora-Maira, Sesia-Lanzo)|13\n3|12|Dolomie e calcari. (Unita` Mesozoiche)|12\n4|11|Calcescisti. (Zona Piemontese, Giurassico-Cretaceo)|11\n5|11|Calcescisti. (Zona Piemontese, Giurassico-Cretaceo)|11\n'

======================================================================
FAIL: test_flagd (__main__.TestRasterreport)
Testing flag d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.extract/testsuite/test_extract.py", line 64, in test_flagd
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|MAJORRDS_|ROAD_NAME|MULTILANE|PROPYEAR|OBJECTID|SHAPE_LEN\n1|1|NC-50|no|0|1|4825.369405\n2|2|NC-50|no|0|2|14392.589058\n3|3|NC-98|no|0|3|3212.981242\n4|4|NC-50|no|0|4|13391.907552\n' != u"cat|PATR|NOME\n1|R|SR 229 DEL LAGO D'ORTA\n2|R|SR 229 DEL LAGO D'ORTA\n3|R|SR 142 BIELLESE\n4|R|SR 142 BIELLESE\n"

======================================================================
FAIL: test_where (__main__.TestRasterreport)
Testing where
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.extract/testsuite/test_extract.py", line 91, in test_where
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|MAJORRDS_|ROAD_NAME|MULTILANE|PROPYEAR|OBJECTID|SHAPE_LEN\n1|1|NC-50|no|0|1|4825.369405\n2|2|NC-50|no|0|2|14392.589058\n3|3|NC-98|no|0|3|3212.981242\n4|4|NC-50|no|0|4|13391.907552\n5|5|NC-98|no|0|5|7196.001495\n6|6||no|0|6|10185.513951\n7|7|US-1|yes|0|7|13655.438596\n8|8||no|0|8|797.901095\n9|9|NC-98|no|0|9|14772.176241\n' != u"cat|PATR|NOME\n1|R|SR 229 DEL LAGO D'ORTA\n2|R|SR 229 DEL LAGO D'ORTA\n3|R|SR 142 BIELLESE\n4|R|SR 142 BIELLESE\n5|R|SR 229 DEL LAGO D'ORTA\n6|S|SS 231\n7|S|SS 26\n8|S|SS 26\n9|R|SR 457 DI MONCALVO\n"

----------------------------------------------------------------------
Ran 5 tests in 1.318s
FAILED (failures=3)