mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-24 06:22:57 +08:00
assertion typeof == list
This commit is contained in:
parent
d92afaab63
commit
c5cf08da24
1 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue