~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/test_distroseries.py

Change all uses of 'initialise' to 'initialize'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
from lp.soyuz.interfaces.component import IComponentSet
68
68
from lp.soyuz.interfaces.distributionjob import (
69
69
    IDistroSeriesDifferenceJobSource,
70
 
    IInitialiseDistroSeriesJobSource,
 
70
    IInitializeDistroSeriesJobSource,
71
71
    )
72
72
from lp.soyuz.interfaces.packagecopyjob import IPlainPackageCopyJobSource
73
73
from lp.soyuz.interfaces.sourcepackageformat import (
296
296
 
297
297
        self.assertThat(html_content, portlet_display)
298
298
 
299
 
    def test_differences_portlet_initialising(self):
300
 
        # The difference portlet displays 'The series is initialising.' if
301
 
        # there is an initialising job for the series.
 
299
    def test_differences_portlet_initializing(self):
 
300
        # The difference portlet displays 'The series is initializing.' if
 
301
        # there is an initializing job for the series.
302
302
        set_derived_series_ui_feature_flag(self)
303
303
        derived_series = self.factory.makeDistroSeries()
304
304
        parent_series = self.factory.makeDistroSeries()
305
305
        self.simple_user = self.factory.makePerson()
306
 
        job_source = getUtility(IInitialiseDistroSeriesJobSource)
 
306
        job_source = getUtility(IInitializeDistroSeriesJobSource)
307
307
        job_source.create(derived_series, [parent_series.id])
308
308
        portlet_display = soupmatchers.HTMLContains(
309
309
            soupmatchers.Tag(
310
310
                'Derived series', 'h2',
311
 
                text='Series initialisation in progress'),
 
311
                text='Series initialization in progress'),
312
312
            soupmatchers.Tag(
313
313
                'Init message', True,
314
 
                text=re.compile('\s*This series is initialising.\s*')),
 
314
                text=re.compile('\s*This series is initializing.\s*')),
315
315
              )
316
316
 
317
317
        with person_logged_in(self.simple_user):
324
324
            view.request.features = get_relevant_feature_controller()
325
325
            html_content = view()
326
326
 
327
 
        self.assertTrue(derived_series.is_initialising)
 
327
        self.assertTrue(derived_series.is_initializing)
328
328
        self.assertThat(html_content, portlet_display)
329
329
 
330
330