def test_get_relevant_key_and_seed(self):
        """
        Test that get_relevant_key_and_seed functions as expected
        """
        #we get a key with sandwich in it
        self.test_add_line_to_index()
        key, seed = get_relevant_key_and_seed(self.client, relevant_terms=["sandwich",], prefix=self.prefix)
        assert seed in "sandwich"

        #pizza is not in our data set, so we get nothing
        key, seed = get_relevant_key_and_seed(self.client, relevant_terms=["pizza",], prefix=self.prefix)
        assert seed == []
        assert key is None
dataset/ETHPy150Open wieden-kennedy/python-markov/markov/tests.py/TestMarkovFunctions.test_get_relevant_key_and_seed/swapped operands of `in`