Exemplo n.º 1
0
    def test_container_get_commands_empty(self):

        reg = Registry()
        reg.register(FakeApp2())

        commands = reg.get_commands()
        self.assertFalse(len(commands) > 0)
Exemplo n.º 2
0
    def test_container_get_commands_empty(self):

        reg = Registry()
        reg.register(FakeApp2())

        commands = reg.get_commands()
        self.assertFalse(len(commands) > 0)
Exemplo n.º 3
0
    def test_container_get_commands(self):

        reg = Registry()
        reg.register(FakeApp1())
        reg.register(FakeApp2())

        commands = reg.get_commands()
        self.assertTrue(len(commands) > 0)
Exemplo n.º 4
0
    def test_container_get_commands(self):

        reg = Registry()
        reg.register(FakeApp1())
        reg.register(FakeApp2())

        commands = reg.get_commands()
        self.assertTrue(len(commands) > 0)