<s> import wee_slack <EOL> import pytest <EOL> import json <EOL> slack = wee_slack <EOL> unfurl_map = [ <EOL> { "<STR_LIT:input>" : "<STR_LIT:foo>" , <EOL> "<STR_LIT>" : "<STR_LIT:foo>" , <EOL> } , <EOL> { "<STR_LIT:input>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : True <EOL> } , <EOL> { "<STR_LIT:input>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> { "<STR_LIT:input>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> { "<STR_LIT:input>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> { "<STR_LIT:input>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> { "<STR_LIT:input>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> ] <EOL> def test_unfurl_refs ( myservers , mychannels , myusers ) : <EOL> slack . servers = myservers <EOL> slack . channels = mychannels <EOL> slack . users = myusers <EOL> slack . message_cache = { } <EOL> slack . servers [ <NUM_LIT:0> ] . users = myusers <EOL> print mychannels [ <NUM_LIT:0> ] . identifier <EOL> for k in unfurl_map : <EOL> if "<STR_LIT>" in k : <EOL> assert slack . unfurl_refs ( k [ "<STR_LIT:input>" ] , ignore_alt_text = k [ "<STR_LIT>" ] ) == k [ "<STR_LIT>" ] <EOL> else : <EOL> assert slack . unfurl_refs ( k [ "<STR_LIT:input>" ] ) == k [ "<STR_LIT>" ] </s>
