    def test_commands(self):
        '''Tests commands.yaml'''
        with open(COMMAND_CONFIG) as f:
            config = yaml.safe_load(f)
            for name, items in config.items():
                assert 'info' in items, 'No info provided for {0}'.format(name)
                assert 'fn' in items, 'No function provided for {0}'.format(name)
                assert isinstance(getattr(commands, items['fn'], None), types.FunctionType), \
                    '{0}: {1} is not a function'.format(name, items['fn'])
Tests commands.yaml
tests/bot_test.py