Ignore:
Timestamp:
6 Feb 2014, 08:54:59 (11 years ago)
Author:
Henrik Bettermann
Message:

Use absolute URLs. Otherwise images and files might not be found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/tests/test_browser.py

    r11028 r11058  
    613613        # There is a correct <img> link included
    614614        self.assertTrue(
    615             '<a target="image" href="birth_certificate">'
     615            'href="http://localhost/app/students/K1000000/birth_certificate"'
    616616            in self.browser.contents)
    617617        # Browsing the link shows a real image
     
    673673            name='upload_passportuploadmanage').click()
    674674        self.assertTrue(
    675             '<img align="middle" height="125px" src="passport.jpg" />'
     675            'src="http://localhost/app/students/K1000000/passport.jpg"'
    676676            in self.browser.contents)
    677677        # We remove the passport file again
     
    22682268            name='upload_passportuploadedit').click()
    22692269        self.assertTrue(
    2270             '<img align="middle" height="125px" src="passport.jpg" />'
     2270            'src="http://localhost/app/students/K1000000/passport.jpg"'
    22712271            in self.browser.contents)
    22722272        # Students can open admission letter
     
    23262326            name='upload_birthcertificateupload').click()
    23272327        self.assertTrue(
    2328             '<a target="image" href="birth_certificate">Birth Certificate Scan</a>'
     2328            'href="http://localhost/app/students/K1000000/birth_certificate"'
    23292329            in self.browser.contents)
    23302330        # Students can open clearance slip
Note: See TracChangeset for help on using the changeset viewer.