| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

test_csvrw.py

Go to the documentation of this file.
00001 """
00002  "$DBWRITERROOT/share/DYB_SAB_AD1.txt" is not a valid CSV as
00003  it has irregular number of fields
00004 """
00005 
00006 from csvrw import CSV
00007 
00008 def test_invalid():
00009     path = "$DBWRITERROOT/share/DYB_SAB_AD1.txt"
00010     csv_ = CSV(path) 
00011     csv_.read()
00012     assert not csv_.is_valid() 
00013     print csv_    
00014 
00015 
00016 def test_valid():
00017     path = "$DBWRITERROOT/share/DYB_MC_AD1.txt"
00018     csv_ = CSV(path)
00019     csv_.read()
00020     assert csv_.is_valid() 
00021 
00022 if __name__ == '__main__':
00023     test_valid()
00024     test_invalid()
00025 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:17:17 2011 for DybDbi by doxygen 1.4.7