Changeset 59


Ignore:
Timestamp:
01/11/06 16:26:52 (14 years ago)
Author:
laszlo
Message:

Created add tool portlet. closes #153 spent 6m

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.py

    r58 r59  
    2020SECTIONS = ('Content','Activities','Tools','People') 
    2121 
    22 SECTION_PROPERTIES = {'Activities': 
    23     {'left_slots':('here/portlet_add_activity/macros/portlet',)} 
     22SECTION_PROPERTIES = { 
     23    'Activities': 
     24    {'left_slots':('here/portlet_add_activity/macros/portlet',)}, 
     25    'Tools': 
     26    {'left_slots':('here/portlet_add_tool/macros/portlet',)},     
    2427} 
    2528 
  • trunk/tests/testTool.py

    r55 r59  
    1616 
    1717    def afterSetUp(self): 
    18         pass 
    19  
     18        self.addUser('foobar','foobar') 
     19         
    2020    def testEditing(self): 
    2121        LOCATION='url' 
     
    2828        self.assertEqual(ob.getAddress(), ADDRESS) 
    2929        self.assertEqual(ob.getDescription(), '<p>' + DESCRIPTION + '</p>') 
    30         self.failUnless(TAGS in ob.getTags())         
     30        self.failUnless(TAGS in ob.getTags()) 
     31         
     32    def testAddToolPortlet(self): 
     33        auth="foobar:foobar" 
     34        path= self.portal.tools.absolute_url_path() 
     35        result=self.publish(path,basic=auth).getBody() 
     36        self.failUnless(re.search('id="portlet-add_tool"',result), 
     37            "Add tool portlet not found.") 
     38 
    3139     
    3240def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.