Changeset 306

Show
Ignore:
Timestamp:
09/20/06 14:00:44 (2 years ago)
Author:
thomase
Message:

Changed skin for GeographicEntityLite so it prefixes the names content listing with "Historical Names". Added test to verify.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GeographicEntityLite/trunk/GeographicEntityLite/skins/GeographicEntityLite/geographicentitylite_view.pt

    r150 r306  
    1010                                               folderish here/isPrincipiaFolderish | nothing;"> 
    1111            <tal:if_folderlisting condition="python:folderish and fl_macro"> 
    12                 <h3>Geographic Names:</h3> 
     12                <h3>Historical Names:</h3> 
    1313                <metal:use_macro use-macro="fl_macro" /> 
    1414            </tal:if_folderlisting> 
  • GeographicEntityLite/trunk/GeographicEntityLite/tests/GeoEntityLite.txt

    r234 r306  
    2323    'GeographicEntityLite' 
    2424     
     25Initialize the test browser 
     26 
     27    >>> from Products.Five.testbrowser import Browser 
     28    >>> browser = Browser() 
     29    >>> browser.handleErrors = False 
     30 
     31Let us log all exceptions, which is useful for debugging. Also, clear portlet 
     32slots, to make the test browser less confused by things like the recent portlet 
     33and the navtree. 
     34 
     35    >>> self.portal.error_log._ignored_exceptions = () 
     36    >>> self.portal.left_slots = self.portal.right_slots = [] 
     37 
     38Browse the entity 
     39 
     40    >>> entity_url = entity.absolute_url() 
     41    >>> browser.open(entity_url) 
     42 
     43Check the URL  
     44 
     45    >>> browser.url == entity_url 
     46    True 
     47    >>> browser.url.endswith('aaa') 
     48    True 
     49     
     50Check the html content of the view page (description will not appear here) 
     51    >>> browser.contents 
     52    '...Historical Names...'