forked from daisyUniverse/TwitFix
-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathtest_vx_VNF.py
More file actions
27 lines (20 loc) · 705 Bytes
/
test_vx_VNF.py
File metadata and controls
27 lines (20 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import twitfix
from vx_testdata import *
def getVNFFromLink(link):
return twitfix.getTweetData(link)
## VNF conversion test ##
def test_textTweetVNF():
vnf = getVNFFromLink(testTextTweet)
compareDict(testTextTweet_compare,vnf)
def test_videoTweetVNF():
vnf = getVNFFromLink(testVideoTweet)
compareDict(testVideoTweet_compare,vnf)
def test_mediaTweetVNF():
vnf = getVNFFromLink(testMediaTweet)
compareDict(testMediaTweet_compare,vnf)
def test_multimediaTweetVNF():
vnf = getVNFFromLink(testMultiMediaTweet)
compareDict(testMultiMediaTweet_compare,vnf)
def test_pollTweetVNF():
vnf = getVNFFromLink(testPollTweet)
compareDict(testPollTweet_compare,vnf)