def test_is_my_url(): assert not HistmagSource.is_my_url('http://example.com') assert HistmagSource.is_my_url( 'http://histmag.org/Niech-zyje-car-Wladyslaw-Zygmuntowicz-Cz.-3-Upadek-planow-hetmana-8449' ) assert HistmagSource.is_my_url( 'https://histmag.org/czy-powstanie-listopadowe-bylo-skazane-na-porazke-13520' )
def test_is_my_url(): assert not HistmagSource.is_my_url('http://example.com') assert HistmagSource.is_my_url( 'http://histmag.org/Niech-zyje-car-Wladyslaw-Zygmuntowicz-Cz.-3-Upadek-planow-hetmana-8449') assert HistmagSource.is_my_url( 'https://histmag.org/czy-powstanie-listopadowe-bylo-skazane-na-porazke-13520')