# Path: implementation/primaries/ExtractMetadata/classes/SearchProcessor.py
# def process(query_input):
# def handle_meter_tempo_text_kv(token):
# def is_key(token_pair):
# def has_mode(token):
# def is_meter(token):
# def is_tempo(token):
# def split_input(query_input):
# def handle_colons_and_semicolons(entry):


import unittest
from implementation.primaries.ExtractMetadata.classes import SearchProcessor
        self.assertTrue(SearchProcessor.is_key(token))

    def testIsNotKey(self):
        token = ["Hello"]
        self.assertFalse(SearchProcessor.is_key(token))

    def testIsTempoOneWord(self):
        token = "quaver=80"
        self.assertTrue(SearchProcessor.is_tempo(token))

    def testIsNotTempo(self):
        token = "1=2"
        self.assertFalse(SearchProcessor.is_tempo(token))

    def testIsTempoTwoWords(self):
        token = "quaver=crotchet"
        self.assertTrue(SearchProcessor.is_tempo(token))

    def testCreatesTempo(self):
        token = "quaver=crotchet"
        result = SearchProcessor.process(token)
        self.assertEqual(result["tempo"], [token])

    def testCreatesMeter(self):
        token = "2/4"
        result = SearchProcessor.process(token)
        self.assertEqual(result["meter"], [token])

    def testCreatesText(self):
        token = "nothing"

# Path: implementation/primaries/ExtractMetadata/classes/SearchProcessor.py
# def process(query_input):
# def handle_meter_tempo_text_kv(token):
# def is_key(token_pair):
# def has_mode(token):
# def is_meter(token):
# def is_tempo(token):
# def split_input(query_input):
# def handle_colons_and_semicolons(entry):


# Path: implementation/primaries/ExtractMetadata/tests/test_search_processor.py
import unittest
from implementation.primaries.ExtractMetadata.classes import SearchProcessor

        self.assertTrue(SearchProcessor.is_key(token))

    def testIsNotKey(self):
        token = ["Hello"]
        self.assertFalse(SearchProcessor.is_key(token))

    def testIsTempoOneWord(self):
        token = "quaver=80"
        self.assertTrue(SearchProcessor.is_tempo(token))

    def testIsNotTempo(self):
        token = "1=2"
        self.assertFalse(SearchProcessor.is_tempo(token))

    def testIsTempoTwoWords(self):
        token = "quaver=crotchet"
        self.assertTrue(SearchProcessor.is_tempo(token))

    def testCreatesTempo(self):
        token = "quaver=crotchet"
        result = SearchProcessor.process(token)
        self.assertEqual(result["tempo"], [token])

    def testCreatesMeter(self):
        token = "2/4"
        result = SearchProcessor.process(token)
        self.assertEqual(result["meter"], [token])

    def testCreatesText(self):
        token = "nothing"

        result = SearchProcessor.process(token)