<filename>atest/testdata/test_libraries/dynamic_libraries/InvalidArgSpecs.py
KEYWORDS = [('argspec with other than strings', [1, 2]),
            ('named args before positional', ['a=1', 'b']),
            ('varargs before positional args', ['*varargs', 'a']),
            ('varargs before named args', ['*varargs', 'a=1']),
            ('kwargs before positional args', ['**kwargs', 'a']),
            ('kwargs before named args', ['**kwargs', 'a=1']),
            ('kwargs before varargs', ['**kwargs', '*varargs']),
            ('valid argspec', ['a'])]


class InvalidArgSpecs(object):

    def get_keyword_names(self):
        return [name for name, _ in KEYWORDS]

    def run_keyword(self, name, args, kwargs):
        return ''.join(args + tuple(kwargs)).upper()

    def get_keyword_arguments(self, name):
        return dict(KEYWORDS)[name]
