Commits

AJ R committed d55f233

modified testsso unittests and doctests can both be run by nosetests

  • Participants
  • Parent commits d75d23f

Comments (0)

Files changed (25)

savReaderWriter/doc_tests/test_SavHeaderReader_dictionary.txt

 >>> sys.stdout.write('<skipline> '); from savReaderWriter import * # doctest: +ELLIPSIS
 <skipline> ...
 
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> with SavHeaderReader(savFileName) as spssDict: # doctest: +ELLIPSIS
 ...     wholeDict = spssDict.dataDictionary()
 >>> desired = \

savReaderWriter/doc_tests/test_SavHeaderReader_report1.txt

 >>> sys.stdout.write('<skipline> '); from savReaderWriter import * # doctest: +ELLIPSIS
 <skipline> ...
 
->>> savFileName = "../test_data/spssio_test.sav"
+>>> savFileName = "../savReaderWriter/test_data/spssio_test.sav"
 >>> with SavHeaderReader(savFileName) as spssDict: # doctest: +ELLIPSIS
-...     print unicode(spssDict)
+...     print(unicode(spssDict))
 ...     wholeDict = spssDict.dataDictionary()
 #ALIGNMENTS
 AGE3 -- right

savReaderWriter/doc_tests/test_SavHeaderReader_report2.txt

 >>> sys.stdout.write('<skipline> '); from savReaderWriter import * # doctest: +ELLIPSIS
 <skipline> ...
 
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> with SavHeaderReader(savFileName) as spssDict: # doctest: +ELLIPSIS
-...     print unicode(spssDict)
+...     print(unicode(spssDict))
 ...     wholeDict = spssDict.dataDictionary()
 #ALIGNMENTS
 salary -- right
 jobtime -- 0
 educ -- 0
 id -- 0
-#ALIGNMENTS
-salary -- right
-jobcat -- right
-bdate -- right
-minority -- right
-prevexp -- right
-gender -- left
-salbegin -- right
-jobtime -- right
-educ -- right
-id -- right
-#CASEWEIGHTVAR
-#COLUMNWIDTHS
-salary -- 8
-jobcat -- 8
-bdate -- 13
-minority -- 8
-prevexp -- 8
-gender -- 1
-salbegin -- 8
-jobtime -- 8
-educ -- 8
-id -- 8
-#FILEATTRIBUTES
-#FILELABEL
-05.00.00
-#FORMATS
-salary -- DOLLAR8
-jobcat -- F1
-bdate -- ADATE10
-minority -- F1
-prevexp -- F6
-gender -- A1
-salbegin -- DOLLAR8
-jobtime -- F2
-educ -- F2
-id -- F4
-#MEASURELEVELS
-salary -- ratio
-jobcat -- ordinal
-bdate -- ratio
-minority -- ordinal
-prevexp -- ratio
-gender -- nominal
-salbegin -- ratio
-jobtime -- ratio
-educ -- ordinal
-id -- ratio
-#MISSINGVALUES
-salary: values -- 0.0
-jobcat: values -- 0.0
-minority: values -- 9.0
-salbegin: values -- 0.0
-jobtime: values -- 0.0
-educ: values -- 0.0
-#MULTRESPDEFS
-#VALUELABELS
-salary: 0.0 -- missing
-jobcat: 0.0 -- 0 (Missing)
-jobcat: 1.0 -- Clerical
-jobcat: 2.0 -- Custodial
-jobcat: 3.0 -- Manager
-salbegin: 0.0 -- missing
-minority: 0.0 -- No
-minority: 1.0 -- Yes
-minority: 9.0 -- 9 (Missing)
-prevexp: 0.0 -- missing
-gender: f -- Female
-gender: m -- Male
-jobtime: 0.0 -- missing
-educ: 0.0 -- 0 (Missing)
-educ: 8.0 -- 8
-educ: 12.0 -- 12
-educ: 14.0 -- 14
-educ: 15.0 -- 15
-educ: 16.0 -- 16
-educ: 17.0 -- 17
-educ: 18.0 -- 18
-educ: 19.0 -- 19
-educ: 20.0 -- 20
-educ: 21.0 -- 21
-#VARATTRIBUTES
-#VARLABELS
-salary -- Current Salary
-jobcat -- Employment Category
-bdate -- Date of Birth
-minority -- Minority Classification
-prevexp -- Previous Experience (months)
-gender -- Gender
-salbegin -- Beginning Salary
-jobtime -- Months since Hire
-educ -- Educational Level (years)
-id -- Employee Code
-#VARNAMES
-id
-gender
-bdate
-educ
-jobcat
-salary
-salbegin
-jobtime
-prevexp
-minority
-#VARROLES
-salary -- input
-jobcat -- input
-bdate -- input
-minority -- input
-prevexp -- input
-gender -- input
-salbegin -- input
-jobtime -- input
-educ -- input
-id -- input
-#VARSETS
-SALARY -- salbegin, salary
-DEMOGR -- gender, minority, educ
-#VARTYPES
-salary -- 0
-jobcat -- 0
-bdate -- 0
-minority -- 0
-prevexp -- 0
-gender -- 1
-salbegin -- 0
-jobtime -- 0
-educ -- 0
-id -- 0

savReaderWriter/doc_tests/test_SavHeaderReader_report_utf8.txt

 <skipline> ...
 
 # Unicode and doctest is a little awkward. This could be done in a better way, I guess
->>> savFileName = "../test_data/greetings.sav"
+>>> savFileName = "../savReaderWriter/test_data/greetings.sav"
 >>> with SavHeaderReader(savFileName, ioUtf8=True) as spssDict:
 ...     pprint.pprint( repr(unicode(spssDict)).split("\n") )  # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
-#ALIGNMENTS...
 ['u"File \'greetings.sav\' built using SavReaderWriter.py version ... (... ... ... ...:...:... ...)\\n#ALIGNMENTS\\nline -- left\\ngreeting -- left\\nBondjo\\xfb -- left\\n#CASEWEIGHTVAR\\n#COLUMNWIDTHS\\nline -- 8\\ngreeting -- 50\\nBondjo\\xfb -- 20\\n#FILEATTRIBUTES\\n#FILELABEL\\nFile created by user \'Administrator\' at Thu Jan 17 16:35:14 2013\\n#FORMATS\\nline -- F8.2\\ngreeting -- A50\\nBondjo\\xfb -- A20\\n#MEASURELEVELS\\nline -- unknown\\ngreeting -- unknown\\nBondjo\\xfb -- unknown\\n#MISSINGVALUES\\nline: lower -- 0.0\\nline: upper -- 9.0\\nBondjo\\xfb: values -- \\xa1hola! \\n#MULTRESPDEFS\\n#VALUELABELS\\nBondjo\\xfb: Thai -- \\u0e2a\\u0e27\\u0e31\\u0e2a\\u0e14\\u0e35\\n#VARATTRIBUTES\\n#VARLABELS\\ngreeting -- \\u0627\\u0644\\u0633\\u0644\\u0627\\u0645 \\u0639\\u0644\\u064a\\u0643\\u0645\\n#VARNAMES\\nline\\nBondjo\\xfb\\ngreeting\\n#VARROLES\\nline -- input\\ngreeting -- input\\nBondjo\\xfb -- input\\n#VARSETS\\n#VARTYPES\\nline -- 0\\ngreeting -- 50\\nBondjo\\xfb -- 20"']

savReaderWriter/doc_tests/test_SavHeaderReader_type7.txt

 
 # e.g. Record subtype 3, which contains 'Release information' is present (True)
 # This file contains release info, but no date variable info, etc. etc.
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> with SavHeaderReader(savFileName) as spssDict:
 ...    type7info = spssDict.queryType7
 >>> desired = \

savReaderWriter/doc_tests/test_SavHeaderReader_unicode.txt

 <skipline> ...
 
 
->>> savFileName = "../test_data/greetings.sav"
+>>> savFileName = "../savReaderWriter/test_data/greetings.sav"
 >>> with SavHeaderReader(savFileName, ioUtf8=True) as spssDict: # doctest: +ELLIPSIS
-...     wholeDict = spssDict.dataDictionary()
-...     really = wholeDict
+...     really = spssDict.dataDictionary()
 
 >>> thai = u'\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35'
 >>> arabic = (u'\u0627\u0644\u0633\u0644\u0627\u0645 '+ 

savReaderWriter/doc_tests/test_SavReader_all.txt

 <skipline> ...
 
 ## ... conveniently get all the records
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> data = SavReader(savFileName)   # doctest: +ELLIPSIS
 >>> with data:
 ...    records = data.all()             

savReaderWriter/doc_tests/test_SavReader_cmp.txt

 <skipline> ...
 
 ## ... get number of cases by using __len__
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> try:    # doctest: +ELLIPSIS
 ...     reader = SavReader(savFileName)        
 ...     print reader == reader, reader > reader, reader < reader

savReaderWriter/doc_tests/test_SavReader_file_info.txt

 <skipline> ...
 
 ## ... Get some basic file info
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> try:  # doctest: +ELLIPSIS
 ...     reader = SavReader(savFileName)      
 ...     numVars, nCases, varNames, varTypes, formats, \

savReaderWriter/doc_tests/test_SavReader_file_report.txt

 <skipline> ...
 
 ## ... Get some basic file info
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> try:  # doctest: +ELLIPSIS
 ...     reader = SavReader(savFileName, ioLocale='en_US.UTF-8')      
 ...     print str(reader)
 ...     reader.close()
 ...
 **********************************************************************
-*File '../test_data/Employee data.sav' (24.32 kB) has 10 columns (variables) and 474 rows (4740 values)
+*File '../savReaderWriter/test_data/Employee data.sav' (24.32 kB) has 10 columns (variables) and 474 rows (4740 values)
 *The file was created with SPSS version: MS Windows Release 11.0 spssio32.dll (11.1.0)
 *The interface locale is: 'en_US.UTF-8'
 *The interface mode is: Codepage (UTF-8)
 **********************************************************************
 <BLANKLINE>
 **********************************************************************
-*File '../test_data/Employee data.sav' (24.32 kB) has 10 columns (variables) and 474 rows (4740 values)
+*File '../savReaderWriter/test_data/Employee data.sav' (24.32 kB) has 10 columns (variables) and 474 rows (4740 values)
 *The file was created with SPSS version: MS Windows Release 11.0 spssio32.dll (11.1.0)
 *The interface locale is: 'en_US.UTF-8'
 *The interface mode is: Codepage (UTF-8)

savReaderWriter/doc_tests/test_SavReader_get.txt

 <skipline> ...
 
 ## ... Do a binary search for records --> idVar
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> try:    # doctest: +ELLIPSIS
 ...     reader = SavReader(savFileName, idVar="id")       
 ...     print reader.get(4, "not found")            # gets first record where id==4

savReaderWriter/doc_tests/test_SavReader_getitem.txt

 
 
 ## ... Use indexing, slicing to access records using __getitem__
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> reader = SavReader(savFileName)
 >>> with reader:
 ...     print "The first six records look like this\n", reader[:6]
 [1.0, 'm', '1952-02-03', 15.0, 3.0, 57000.0, 27000.0, 98.0, 144.0, 0.0]]
 
 
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> try:    # doctest: +ELLIPSIS
 ...     reader = SavReader(savFileName)        
 ...     print "This yields an IndexError", reader[len(reader) + 1] # doctest: +ELLIPSIS

savReaderWriter/doc_tests/test_SavReader_len.txt

 <skipline> ...
 
 ## ... get number of cases by using __len__
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> try:    # doctest: +ELLIPSIS
 ...     reader = SavReader(savFileName)        
 ...     print "The file contains %d records" % len(reader)

savReaderWriter/doc_tests/test_SavReader_rawMode.txt

 ## ----- Typical use
 ## rawMode means date and certain values are not converted/formatted
 ## Dates are now shown as the number of seconds since the Gregorian epoch
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> with SavReader(savFileName, rawMode=True) as sav: # doctest: +ELLIPSIS
 ...     for lino, line in enumerate(sav):
 ...         if lino < 100:

savReaderWriter/doc_tests/test_SavReader_typical.txt

 <skipline> ...
 
 ## ----- Typical use
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> with SavReader(savFileName, returnHeader=True) as sav: # doctest: +ELLIPSIS
 ...     header = sav.next()
 ...     print header

savReaderWriter/doc_tests/test_SavReader_zsav.txt

 ## It's a good idea not to change the .zsav extension
 ## SPSS versions 20 or older are NOT compatible with zsav
 ## The latest SPSS version is 21, so older versions are pretty common!
->>> savFileName = "../test_data/zlib_compressed.zsav"
+>>> savFileName = "../savReaderWriter/test_data/zlib_compressed.zsav"
 >>> with SavReader(savFileName) as zsav: # doctest: +ELLIPSIS
 ...     for lino, line in enumerate(zsav):
 ...             print line

savReaderWriter/doc_tests/test_SavWriter_mode_ab.txt

 ## Append some records to an existing file
 ## First make a copy to work with (append records to)
 ## Also retrieve varNames and varTypes as these are mandatory args
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> shutil.copy(savFileName, "Employee data copy.sav")
 >>> try:  # doctest: +ELLIPSIS
 ...     r = SavReader(savFileName, rawMode=True)

savReaderWriter/doc_tests/test_SavWriter_mode_cp.txt

 
 ###############
 ## Copy header info from one file to another (Method #1)
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> with SavHeaderReader(savFileName) as spssDict:
 ...     wholeDict = spssDict.dataDictionary()  # doctest: +ELLIPSIS
 ...
 ## Copy header info from one file to another (Method #2)
 ## Uses <refSavFileName> as a donor file to initialize the header
 ## This will also copy DATE/TREND info, which is not copied using Method #1
->>> savFileName = "../test_data/Employee data.sav"
+>>> savFileName = "../savReaderWriter/test_data/Employee data.sav"
 >>> r = SavReader(savFileName, rawMode=True)  # doctest: +ELLIPSIS
 ...
 >>> varNames, varTypes = r.getSavFileInfo()[2:4]  # doctest: +ELLIPSIS
 
 # read the meta data back in to see if it looks the same
 >>> with SavHeaderReader("Employee data_out.sav") as h:  # doctest: +ELLIPSIS
-...     print unicode(h)
+...     print(str(h))
 ...
 #ALIGNMENTS
 salary -- right
 jobtime -- 0
 educ -- 0
 id -- 0
-#ALIGNMENTS
-salary -- right
-jobcat -- right
-bdate -- right
-minority -- right
-prevexp -- right
-gender -- left
-salbegin -- right
-jobtime -- right
-educ -- right
-id -- right
-#CASEWEIGHTVAR
-#COLUMNWIDTHS
-salary -- 8
-jobcat -- 8
-bdate -- 13
-minority -- 8
-prevexp -- 8
-gender -- 1
-salbegin -- 8
-jobtime -- 8
-educ -- 8
-id -- 8
-#FILEATTRIBUTES
-#FILELABEL
-05.00.00
-#FORMATS
-salary -- DOLLAR8
-jobcat -- F1
-bdate -- ADATE10
-minority -- F1
-prevexp -- F6
-gender -- A1
-salbegin -- DOLLAR8
-jobtime -- F2
-educ -- F2
-id -- F4
-#MEASURELEVELS
-salary -- ratio
-jobcat -- ordinal
-bdate -- ratio
-minority -- ordinal
-prevexp -- ratio
-gender -- nominal
-salbegin -- ratio
-jobtime -- ratio
-educ -- ordinal
-id -- ratio
-#MISSINGVALUES
-salary: values -- 0.0
-jobcat: values -- 0.0
-minority: values -- 9.0
-salbegin: values -- 0.0
-jobtime: values -- 0.0
-educ: values -- 0.0
-#MULTRESPDEFS
-#VALUELABELS
-salary: 0.0 -- missing
-jobcat: 0.0 -- 0 (Missing)
-jobcat: 1.0 -- Clerical
-jobcat: 2.0 -- Custodial
-jobcat: 3.0 -- Manager
-salbegin: 0.0 -- missing
-minority: 0.0 -- No
-minority: 1.0 -- Yes
-minority: 9.0 -- 9 (Missing)
-prevexp: 0.0 -- missing
-gender: f -- Female
-gender: m -- Male
-jobtime: 0.0 -- missing
-educ: 0.0 -- 0 (Missing)
-educ: 8.0 -- 8
-educ: 12.0 -- 12
-educ: 14.0 -- 14
-educ: 15.0 -- 15
-educ: 16.0 -- 16
-educ: 17.0 -- 17
-educ: 18.0 -- 18
-educ: 19.0 -- 19
-educ: 20.0 -- 20
-educ: 21.0 -- 21
-#VARATTRIBUTES
-#VARLABELS
-salary -- Current Salary
-jobcat -- Employment Category
-bdate -- Date of Birth
-minority -- Minority Classification
-prevexp -- Previous Experience (months)
-gender -- Gender
-salbegin -- Beginning Salary
-jobtime -- Months since Hire
-educ -- Educational Level (years)
-id -- Employee Code
-#VARNAMES
-id
-gender
-bdate
-educ
-jobcat
-salary
-salbegin
-jobtime
-prevexp
-minority
-#VARROLES
-salary -- input
-jobcat -- input
-bdate -- input
-minority -- input
-prevexp -- input
-gender -- input
-salbegin -- input
-jobtime -- input
-educ -- input
-id -- input
-#VARSETS
-SALARY -- salbegin, salary
-DEMOGR -- gender, minority, educ
-#VARTYPES
-salary -- 0
-jobcat -- 0
-bdate -- 0
-minority -- 0
-prevexp -- 0
-gender -- 1
-salbegin -- 0
-jobtime -- 0
-educ -- 0
-id -- 0
 
 # clean up
 >>> os.remove(os.path.abspath("Employee data_out.sav"))

savReaderWriter/doc_tests/test_SavWriter_utf8_mode.txt

 # check the header info
 >>> with SavHeaderReader(savFileName, ioUtf8=True) as spssDict:
 ...     wholeDict = spssDict.dataDictionary()
-...     print repr(unicode(spssDict))  # doctest: +ELLIPSIS
-#ALIGNMENTS...
-u"File 'greetings.sav' built using SavReaderWriter.py version ... (... ...:...:... ...)\n#ALIGNMENTS\ngreeting -- left\nBondjo\xfb -- left\n#CASEWEIGHTVAR\n#COLUMNWIDTHS\ngreeting -- 50\nBondjo\xfb -- 20\n#FILEATTRIBUTES\n#FILELABEL\nFile created by user 'antonia' at ... ...:...:... ...\n#FORMATS\ngreeting -- A50\nBondjo\xfb -- A20\n#MEASURELEVELS\ngreeting -- unknown\nBondjo\xfb -- unknown\n#MISSINGVALUES\nBondjo\xfb: values -- \xa1hola! \n#MULTRESPDEFS\n#VALUELABELS\nBondjo\xfb: Thai -- \u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\n#VARATTRIBUTES\n#VARLABELS\ngreeting -- \u0627\u0644\u0633\u0644\u0627\u0645 \u0639\u0644\u064a\u0643\u0645\n#VARNAMES\nBondjo\xfb\ngreeting\n#VARROLES\ngreeting -- input\nBondjo\xfb -- input\n#VARSETS\n#VARTYPES\ngreeting -- 50\nBondjo\xfb -- 20"
+...     repr(unicode(spssDict))  # doctest: +ELLIPSIS
+'u"File \'greetings.sav\' built using savReaderWriter version ... (...:...:...)\\n#ALIGNMENTS\\ngreeting -- left\\nBondjo\\xfb -- left\\n#CASEWEIGHTVAR\\n#COLUMNWIDTHS\\ngreeting -- 50\\nBondjo\\xfb -- 20\\n#FILEATTRIBUTES\\n#FILELABEL\\nFile created by user \'antonia\' at ...:...:...\\n#FORMATS\\ngreeting -- A50\\nBondjo\\xfb -- A20\\n#MEASURELEVELS\\ngreeting -- unknown\\nBondjo\\xfb -- unknown\\n#MISSINGVALUES\\nBondjo\\xfb: values -- \\xa1hola! \\n#MULTRESPDEFS\\n#VALUELABELS\\nBondjo\\xfb: Thai -- \\u0e2a\\u0e27\\u0e31\\u0e2a\\u0e14\\u0e35\\n#VARATTRIBUTES\\n#VARLABELS\\ngreeting -- \\u0627\\u0644\\u0633\\u0644\\u0627\\u0645 \\u0639\\u0644\\u064a\\u0643\\u0645\\n#VARNAMES\\nBondjo\\xfb\\ngreeting\\n#VARROLES\\ngreeting -- input\\nBondjo\\xfb -- input\\n#VARSETS\\n#VARTYPES\\ngreeting -- 50\\nBondjo\\xfb -- 20"'
 
 # clean up
 >>> os.remove(savFileName)

savReaderWriter/doc_tests/test_SavWriter_writerows_elaborate.txt

 
 # check if the header info is okay
 >>> with SavHeaderReader(savFileName) as h:
-...     print unicode(h)  # doctest: +ELLIPSIS
+...     print(unicode(h))  # doctest: +ELLIPSIS
 ...
+File 'employee data_OUT.sav' built using savReaderWriter version ... (...:...:...)
 #ALIGNMENTS
 salary -- left
 jobcat -- left

savReaderWriter/savHeaderReader.py

                     allValues = [allValues]
                 for varName in allValues:
                     report.append(varName)
-        print(os.linesep.join(report))
+        #print(os.linesep.join(report))
         return os.linesep.join(report)

savReaderWriter/unit_tests/test_SavHeaderReader_dataDict_namedtuple.py

     """
     def setUp(self):
         self.maxDiff = None
-        with SavHeaderReader('../test_data/spssio_test.sav') as header:
+        with SavHeaderReader('../savReaderWriter/test_data/spssio_test.sav') as header:
             self.metadata = header.dataDictionary(True)
 
     def test_alignments(self):

savReaderWriter/unit_tests/test_SavHeaderReader_ioLocale.py

     def setUp(self):
         self.expected = ['python', 'programmieren', 'macht',
                          '\xfcberhaupt', 'v\xf6llig', 'spa\xdf']
-        self.savFileName = "../test_data/german.sav"
+        self.savFileName = "../savReaderWriter/test_data/german.sav"
         self.is_windows = sys.platform.startswith("win")
 	# any locale will do as long as the encoding is cp1252.
         # iso-8859-1 and latin-1 will probably also do.

savReaderWriter/unit_tests/test_SavReader_typical_use.py

 
     def test_SavReader_typical(self):
 
-        savFileName = "../test_data/Employee data.sav"
+        savFileName = "../savReaderWriter/test_data/Employee data.sav"
         records_got = []
         with SavReader(savFileName, returnHeader=True) as reader:
             for record in reader:
         self.assertEqual(records_expected, records_got)
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main()
 [nosetests]
 verbosity=2		
 with-doctest=1
-where=savReaderWriter/doc_tests
-where=savReaderWriter/unit_tests
 doctest-extension=txt
-
+where=savReaderWriter