def test_extend_url(): assert HistmagSource.extend_url( 'http://histmag.org/Niech-zyje-car-Wladyslaw-Zygmuntowicz-Cz.-3-Upadek-planow-hetmana-8449' ) == 'http://histmag.org/Niech-zyje-car-Wladyslaw-Zygmuntowicz-Cz.-3-Upadek-planow-hetmana-8449' assert HistmagSource.extend_url( 'http://histmag.org/Margaret-Thatcher-tajfun-reform-7896' ) == 'http://histmag.org/Margaret-Thatcher-tajfun-reform-7896' assert HistmagSource.extend_url( 'http://histmag.org/zmarl-prof-janusz-tazbir-13257?newsletter=true' ) == 'http://histmag.org/zmarl-prof-janusz-tazbir-13257' assert HistmagSource.extend_url( 'https://histmag.org/Prawdziwy-powod-wybuchu-I-wojny-swiatowej-9648?ciekawostka' ) == 'https://histmag.org/Prawdziwy-powod-wybuchu-I-wojny-swiatowej-9648'