- Timestamp:
- 2 Nov 2012, 18:58:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9507 r9514 787 787 self.browser.contents) 788 788 789 # The ticket can be found in the payments_catalog 790 cat = queryUtility(ICatalog, name='payments_catalog') 791 results = list(cat.searchResults(p_state=('unpaid', 'unpaid'))) 792 self.assertTrue(len(results), 1) 793 self.assertTrue(results[0] is self.student['payments'][value]) 794 789 795 # Managers can approve the payment 790 796 self.assertEqual(len(self.app['accesscodes']['SFE-0']),0) … … 805 811 self.assertEqual( 806 812 self.app['accesscodes']['SFE-0'].values()[0].cost,40000.0) 813 814 # The catalog has been updated 815 results = list(cat.searchResults(p_state=('unpaid', 'unpaid'))) 816 self.assertTrue(len(results), 0) 817 results = list(cat.searchResults(p_state=('paid', 'paid'))) 818 self.assertTrue(len(results), 1) 819 self.assertTrue(results[0] is self.student['payments'][value]) 807 820 808 821 # Payments can't be approved twice
Note: See TracChangeset for help on using the changeset viewer.