~rvb/maas/transaction-1.7-bug-1409852

« back to all changes in this revision

Viewing changes to src/maasserver/tests/test_start_up.py

merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
    def test__does_not_warn_if_boot_images_are_known(self):
141
141
        # If boot images are known, there is no warning about the import
142
142
        # script.
143
 
        factory.make_boot_image()
 
143
        factory.make_BootImage()
144
144
        recorder = self.patch(start_up, 'register_persistent_error')
145
145
 
146
146
        start_up.inner_start_up()
177
177
        patched_handlers = tasks.refresh_functions.copy()
178
178
        patched_handlers['nodegroup_uuid'] = Mock()
179
179
        self.patch(tasks, 'refresh_functions', patched_handlers)
180
 
        factory.make_node_group(status=NODEGROUP_STATUS.ACCEPTED)
 
180
        factory.make_NodeGroup(status=NODEGROUP_STATUS.ACCEPTED)
181
181
        start_up.post_start_up()
182
182
        self.assertThat(
183
183
            patched_handlers['nodegroup_uuid'],