<commit_before>def test_methods(*testMethods):
    #For each:
    #check if method contains an API call
    #check if API call matches live documentation
    #check if Mocker recieves a requst matching above two
    return False<commit_msg>Added preliminary code for test_methods<commit_after>import inspect
import re
def test_methods(*testMethods):
    failures = 0
    for testMethod in testMethods:
        # Check if docstring contains a calls line
        if re.search(":calls:", inspect.getdoc(testMethod)):
            callLine = re.search(":calls:[^_]*_", inspect.getdoc(testMethod)).group()
            callGroups = re.search("(POST |GET |PUT |PATCH |DELETE )[^/]*(/[^ ]*)[^<]*<([^>]*)>",callLine).groups()
            if checkUsage(callGroups) or checkAPIDoc(callGroups)
                failures += 1

    #TODO change to error codes based on results
    return False

#TODO implement
def checkAPIDoc(groups):
    verb, apiURL, docURL = groups
    return False

#TODO implement
def checkUsage(groups):
    return False
{'fraction_non_alphanumeric': 0.10992217898832685, 'fraction_numerical': 0.0019455252918287938, 'mean_word_length': 3.4545454545454546, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2994854', 'n_tokens_mistral': 300, 'n_tokens_neox': 292, 'n_words': 96}