from addon.plugins import aniworld_plugin as ap
from addon.plugins import topstreamfilm_plugin as tp


def test_aniworld_matches_whole_words_only():
    assert ap._matches_query("hund", title="Der Hund")
    assert not ap._matches_query("hund", title="Thunderstruck")
    assert not ap._matches_query("hund", title="Hundeleben")


def test_topstream_matches_whole_words_only():
    assert tp._matches_query("hund", title="Der Hund", description="")
    assert not tp._matches_query("hund", title="Thunderstruck", description="")
    assert not tp._matches_query("hund", title="Hundeleben", description="")
