Ejemplo n.º 1
0
    def test_command_finds_commands(self):
        """Verify we find commands that we know about"""
        COMMANDLIST['!toread'] = lambda bmark: bmark

        bm = BmarkMock()
        bm.tags['!toread'] = True
        commander = Commander(bm)
        commander.build_commands()

        ok_('!toread' in commander.commands,
                "Our commander should find !toread command to run")