assertion typeof == list

This commit is contained in:
csparks 2019-09-08 02:54:59 +00:00
parent d92afaab63
commit c5cf08da24

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
from theHarvester.discovery import linkedinsearch
import pytest
import os
import re
@ -7,6 +8,12 @@
class TestGetLinks(object):
def test_get_links(self):
search = linkedinsearch.SearchLinkedin("facebook.com", '100')
search.process()
links = search.get_links()
assert type(links) == list
def test_links_linkedin(self):
dir_path = os.path.dirname(os.path.realpath(__file__))
mock_response = open(dir_path + "/test_linkedin_links.txt")