Changeset 9011 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 18 Jul 2012, 06:01:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8984 r9011 1868 1868 self.assertTrue('An email with' in self.browser.contents) 1869 1869 1870 def test_reindex(self):1871 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')1872 self.browser.open('http://localhost/app/reindex')1873 self.assertTrue('No catalog name provided' in self.browser.contents)1874 self.browser.open('http://localhost/app/reindex?ctlg=xyz')1875 self.assertTrue('xyz_catalog does not exist' in self.browser.contents)1876 cat = queryUtility(ICatalog, name='students_catalog')1877 results = cat.searchResults(student_id=(None, None))1878 self.assertEqual(len(results),1)1879 cat.clear()1880 results = cat.searchResults(student_id=(None, None))1881 self.assertEqual(len(results),0)1882 self.browser.open('http://localhost/app/reindex?ctlg=students')1883 self.assertTrue('1 students re-indexed' in self.browser.contents)1884 results = cat.searchResults(student_id=(None, None))1885 self.assertEqual(len(results),1)1886 1887 1870 def test_change_current_mode(self): 1888 1871 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Note: See TracChangeset for help on using the changeset viewer.