test_csv

./vector/v.in.ascii – test_csv

Test failed

Testtest_csv
Testsuite./vector/v.in.ascii
Test file./vector/v.in.ascii/testsuite/test_csv.py
StatusFAILED
Return code1
Number of tests5
Successful tests1
Failed tests4
Percent successful20%
Test duration0:00:01.774513
Tested modulesv.in.ascii

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
F.FFF
======================================================================
FAIL: test_delimeter_in_text (__main__.AdvancedCsvTestCase)
Test loading CSV with delimiter in text
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.in.ascii/testsuite/test_csv.py", line 178, in test_delimeter_in_text
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|High Erosion, Low  [truncated]... != 'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|"High Erosion, Low [truncated]...
  cat|x|y|ed_cat|field_estimate
- 100|437343.6704|4061363.41525|High Erosion, Low Canopy|Low Deposition, Low Canopy
+ 100|437343.6704|4061363.41525|"High Erosion, Low Canopy"|"Low Deposition, Low Canopy"
?                               +                        + +                          +
- 101|453643.127906|4050070.29852|High Erosion, High Canopy|Low Erosion, Low Canopy
+ 101|453643.127906|4050070.29852|"High Erosion, High Canopy"|"Low Erosion, Low Canopy"
?                                 +                         + +                       +
- 102|454903.605427|4049480.80568|High Erosion, High Canopy|High Erosion, Low Canopy
+ 102|454903.605427|4049480.80568|"High Erosion, High Canopy"|"High Erosion, Low Canopy"
?                                 +                         + +                        +
- 105|437734.838807|4060493.98315|High Erosion, Low Canopy|Low Erosion, High Canopy
+ 105|437734.838807|4060493.98315|"High Erosion, Low Canopy"|"Low Erosion, High Canopy"
?                                 +                        + +                        +
- 107|450833.019732|4048207.02664|High Erosion, Low Canopy|Low Erosion, High Canopy
+ 107|450833.019732|4048207.02664|"High Erosion, Low Canopy"|"Low Erosion, High Canopy"
?                                 +                        + +                        +


======================================================================
FAIL: test_text_delimeter (__main__.SimpleCsvTestCase)
Test loading CSV with text delimiter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.in.ascii/testsuite/test_csv.py", line 94, in test_text_delimeter
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|High Erosion|Low D [truncated]... != 'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|"High Erosion"|"Lo [truncated]...
  cat|x|y|ed_cat|field_estimate
- 100|437343.6704|4061363.41525|High Erosion|Low Deposition
+ 100|437343.6704|4061363.41525|"High Erosion"|"Low Deposition"
?                               +            + +              +
- 101|453643.127906|4050070.29852|High Erosion|Low Erosion
+ 101|453643.127906|4050070.29852|"High Erosion"|"Low Erosion"
?                                 +            + +           +
- 102|454903.605427|4049480.80568|High Erosion|High Erosion
+ 102|454903.605427|4049480.80568|"High Erosion"|"High Erosion"
?                                 +            + +            +
- 105|437734.838807|4060493.98315|High Erosion|Low Erosion
+ 105|437734.838807|4060493.98315|"High Erosion"|"Low Erosion"
?                                 +            + +           +
- 107|450833.019732|4048207.02664|High Erosion|Low Erosion
+ 107|450833.019732|4048207.02664|"High Erosion"|"Low Erosion"
?                                 +            + +           +


======================================================================
FAIL: test_tsv (__main__.SimpleCsvTestCase)
Test loading TSV (CSV with tab as delim)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.in.ascii/testsuite/test_csv.py", line 116, in test_tsv
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|High Erosion|Low D [truncated]... != 'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|"High Erosion"|"Lo [truncated]...
  cat|x|y|ed_cat|field_estimate
- 100|437343.6704|4061363.41525|High Erosion|Low Deposition
+ 100|437343.6704|4061363.41525|"High Erosion"|"Low Deposition"
?                               +            + +              +
- 101|453643.127906|4050070.29852|High Erosion|Low Erosion
+ 101|453643.127906|4050070.29852|"High Erosion"|"Low Erosion"
?                                 +            + +           +
- 102|454903.605427|4049480.80568|High Erosion|High Erosion
+ 102|454903.605427|4049480.80568|"High Erosion"|"High Erosion"
?                                 +            + +            +
- 105|437734.838807|4060493.98315|High Erosion|Low Erosion
+ 105|437734.838807|4060493.98315|"High Erosion"|"Low Erosion"
?                                 +            + +           +
- 107|450833.019732|4048207.02664|High Erosion|Low Erosion
+ 107|450833.019732|4048207.02664|"High Erosion"|"Low Erosion"
?                                 +            + +           +


======================================================================
FAIL: test_uncommon_delims (__main__.SimpleCsvTestCase)
Test loading CSV with uncommon delimiters
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.in.ascii/testsuite/test_csv.py", line 132, in test_uncommon_delims
    msg="Attribute table has wrong entries")
AssertionError: Attribute table has wrong entries 
'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|High Erosion|Low D [truncated]... != 'cat|x|y|ed_cat|field_estimate\n100|437343.6704|4061363.41525|^High Erosion^|^Lo [truncated]...
  cat|x|y|ed_cat|field_estimate
- 100|437343.6704|4061363.41525|High Erosion|Low Deposition
+ 100|437343.6704|4061363.41525|^High Erosion^|^Low Deposition^
?                               +            + +              +
- 101|453643.127906|4050070.29852|High Erosion|Low Erosion
+ 101|453643.127906|4050070.29852|^High Erosion^|^Low Erosion^
?                                 +            + +           +
- 102|454903.605427|4049480.80568|High Erosion|High Erosion
+ 102|454903.605427|4049480.80568|^High Erosion^|^High Erosion^
?                                 +            + +            +
- 105|437734.838807|4060493.98315|High Erosion|Low Erosion
+ 105|437734.838807|4060493.98315|^High Erosion^|^Low Erosion^
?                                 +            + +           +
- 107|450833.019732|4048207.02664|High Erosion|Low Erosion
+ 107|450833.019732|4048207.02664|^High Erosion^|^Low Erosion^
?                                 +            + +           +


----------------------------------------------------------------------
Ran 5 tests in 0.882s
FAILED (failures=4)