def document_matches(document, dct):
    """
	Return True, if the document matches the
	given dict. If a value in the dict is not contained
	in the document, this will return false.
	"""
    for k, v in dct.items():
        if k in document and document[k] == v:
            continue
        else:
            return False
    return True
