Ignore:
Timestamp:
7 Jan 2014, 07:32:50 (11 years ago)
Author:
Henrik Bettermann
Message:

Make tests turn-of-the-year-resistant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r10842 r10874  
    880880        exporter.export([self.student], self.outfile)
    881881        result = open(self.outfile, 'rb').read()
    882         self.assertEqual(
     882        self.assertTrue(
    883883            'student_id,matric_number,display_fullname,state,certcode,'
    884884            'faccode,depcode,is_postgrad,'
     
    886886            '%s\r\n'
    887887            'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,2012,ug_ft,'
    888             ',,,,,,,,12.12,\r\n' % year_range_str,
    889             result
     888            % year_range_str in result
    890889            )
    891890        return
     
    906905        exporter.export_all(self.app, self.outfile)
    907906        result = open(self.outfile, 'rb').read()
    908         self.assertEqual(
     907        self.assertTrue(
    909908            'student_id,matric_number,display_fullname,state,'
    910909            'certcode,faccode,depcode,is_postgrad,'
    911910            'current_level,current_session,current_mode,'
    912911            '%s\r\nA111111,234,Anna M. Tester,created,CERT1,NA,NA,0,'
    913             '200,2012,ug_ft,,,,,,13.13,,,12.12,\r\n' % year_range_str,
    914             result
     912            '200,2012,ug_ft' % year_range_str in result
    915913            )
    916914        return
Note: See TracChangeset for help on using the changeset viewer.