Example #1
0
def test_archive_url_format():
    pb = Pastebin()
    archive_list = pb.get_archive()

    for link in archive_list:
        assert re.match(r'https://pastebin\.com/[a-zA-Z0-9]{8}',
                        link).group() == link
Example #2
0
def test_archive_url_format():
    pb = Pastebin()
    archive_list = pb.get_archive()
    print(archive_list)
    for id in archive_list:
        print(id)
        reg = re.match(r"[a-zA-Z0-9]{8}", id)
        assert reg.group() == id