# Path: problemtools/languages.py
# class LanguageConfigError(Exception):
# class Language(object):
# class Languages(object):
#     __KEYS = ['name', 'priority', 'files', 'shebang', 'compile', 'run']
#     __VARIABLES = ['path', 'files', 'binary', 'mainfile', 'mainclass', 'Mainclass', 'memlim']
#     def __init__(self, lang_id, lang_spec):
#     def get_source_files(self, file_list):
#     def update(self, values):
#     def __check(self):
#     def __variables_in_command(cmd):
#     def __matches_shebang(self, filename):
#     def __init__(self, data=None):
#     def detect_language(self, file_list):
#     def update(self, data):
# def load_language_config():


from unittest import TestCase
from problemtools import languages
import pytest
import os
import re
# -*- coding: utf-8 -*-



class Language_test(TestCase):
    @staticmethod
    def __language_dict():
        return {'name': 'A Language',
                'priority': 100,
                'files': '*.foo *.bar',
                'shebang': '.*',
                'compile': 'echo {path} {files} {binary}',
                'run': '{binary} {memlim}'
                }

    def test_create(self):

# Path: problemtools/languages.py
# class LanguageConfigError(Exception):
# class Language(object):
# class Languages(object):
#     __KEYS = ['name', 'priority', 'files', 'shebang', 'compile', 'run']
#     __VARIABLES = ['path', 'files', 'binary', 'mainfile', 'mainclass', 'Mainclass', 'memlim']
#     def __init__(self, lang_id, lang_spec):
#     def get_source_files(self, file_list):
#     def update(self, values):
#     def __check(self):
#     def __variables_in_command(cmd):
#     def __matches_shebang(self, filename):
#     def __init__(self, data=None):
#     def detect_language(self, file_list):
#     def update(self, data):
# def load_language_config():


# Path: problemtools/tests/test_languages.py
from unittest import TestCase
from problemtools import languages
import pytest
import os
import re

# -*- coding: utf-8 -*-



class Language_test(TestCase):
    @staticmethod
    def __language_dict():
        return {'name': 'A Language',
                'priority': 100,
                'files': '*.foo *.bar',
                'shebang': '.*',
                'compile': 'echo {path} {files} {binary}',
                'run': '{binary} {memlim}'
                }

    def test_create(self):

        lang = languages.Language('langid', self.__language_dict())