def test_container_get_commands_empty(self): reg = Registry() reg.register(FakeApp2()) commands = reg.get_commands() self.assertFalse(len(commands) > 0)
def test_container_get_commands(self): reg = Registry() reg.register(FakeApp1()) reg.register(FakeApp2()) commands = reg.get_commands() self.assertTrue(len(commands) > 0)