def test_default_without_injector_registry(self,
                                               mocked_create_container_ships,
                                               mocked_injector,
                                               mocked_create_registries):
        mocked_injector.return_value = mock.Mock()
        mocked_create_registries.return_value = {
            'default': mocked_injector.return_value,
            'docker_hub': mock.Mock(),
            'development': mock.Mock()
        }

        registries = {
            'development': {
                'verify': False,
                'address': 'https://docker-dev.ops.tune.com'
            },
            'default': {
                'verify': False,
                'address': 'https://default-registry.com'
            }
        }

        commercial_invoice = CommercialInvoice(
            'power_rangers', 'mighty_morphing', self.services, self.hosts,
            'app', 'quality_control', 'development', 'local', registries)

        self.assertEqual(commercial_invoice.injector,
                         mocked_injector.return_value)
        mocked_injector.assert_called_once_with('development', 'local',
                                                'mighty_morphing',
                                                mocked_injector.return_value)
    def test_tags_and_tagging_scheme_defaults(self, mocked_create_registries,
                                              mocked_create_container_ships):
        commercial_invoice = CommercialInvoice(
            'power_rangers', 'mighty_morphing', self.services, self.hosts,
            'app', 'quality_control', 'development', 'local', self.registries)

        self.assertEqual(commercial_invoice.tags, [])
        self.assertEqual(commercial_invoice._tagging_scheme, True)