Ejemplo n.º 1
0
    def test_initialize(self):
        orphan.initialize(self.context)

        self.assertEqual(len(self.context.cli.root_section.subsections), 1)
        self.assertTrue(
            isinstance(self.context.cli.root_section.subsections['orphan'],
                       orphan.OrphanSection))
Ejemplo n.º 2
0
Archivo: cli.py Proyecto: omps/pulp
def initialize(context):
    admin_auth.initialize(context)
    consumer.initialize(context)
    auth.initialize(context)
    binding.initialize(context)
    event.initialize(context)
    orphan.initialize(context)
    repo.initialize(context)
    server_info.initialize(context)
    tasks.initialize(context)
Ejemplo n.º 3
0
    def test_initialize(self):
        orphan.initialize(self.context)

        self.assertEqual(len(self.context.cli.root_section.subsections), 1)
        self.assertTrue(isinstance(self.context.cli.root_section.subsections['orphan'],
                        orphan.OrphanSection))