Ignore:
Timestamp:
5 Feb 2014, 07:00:02 (11 years ago)
Author:
Henrik Bettermann
Message:

Test import of ResultEntryField? values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r9582 r11054  
    9898        self.assertEqual(num_warns,0)
    9999        assert len(self.app['students'].keys()) == 3
     100        # Also fst_sit_results have been properly imported (tested only here!)
     101        self.assertEqual(
     102            self.app['students']['K1000000'].fst_sit_results[0].__dict__,
     103            {'grade': 'A1', 'subject': 'visual_art'})
     104        self.assertEqual(
     105            self.app['students']['K1000000'].fst_sit_results[1].__dict__,
     106            {'grade': 'C6', 'subject': 'applied_electricity'})
    100107        shutil.rmtree(os.path.dirname(fin_file))
    101108
Note: See TracChangeset for help on using the changeset viewer.