Ignore:
Timestamp:
14 Mar 2012, 03:19:19 (13 years ago)
Author:
uli
Message:

A (slightly) different setup to register phone prefixes in KofaUtils?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_phonewidget.py

    r7855 r7874  
    3030from zope.publisher.browser import TestRequest
    3131from zope.schema.interfaces import ITextLine
    32 from waeup.kofa.widgets.phonewidget import PhoneWidget, PhonePrefixes
     32from waeup.kofa.widgets.phonewidget import PhoneWidget
    3333
    3434# Dummy content
     
    7474        (ITextLine, TextWidget),
    7575        ]
    76 
    77     def setUp(self):
    78         super(PhoneWidgetTests, self).setUp()
    79         # register the phone prefixes utility
    80         self.gsm = getGlobalSiteManager()
    81         self.reg_prefixes = PhonePrefixes()
    82         self.gsm.registerUtility(self.reg_prefixes)
    83         return
    84 
    85     def tearDown(self):
    86         self.gsm.unregisterUtility(self.reg_prefixes)
    87         return
    8876
    8977    def test_display_editform(self):
Note: See TracChangeset for help on using the changeset viewer.