<s> """<STR_LIT>""" <EOL> from pybox . utils import get_sha1 , get_browser , user_of_email <EOL> def test_get_sha1 ( tmpdir ) : <EOL> text_hash_pairs = [ <EOL> ( "<STR_LIT>" , "<STR_LIT>" ) , <EOL> ( "<STR_LIT>" , "<STR_LIT>" ) , <EOL> ( "<STR_LIT>" , "<STR_LIT>" ) , <EOL> ( "<STR_LIT:abc>" , "<STR_LIT>" ) , <EOL> ] <EOL> for text , hash_val in text_hash_pairs : <EOL> f = tmpdir . join ( "<STR_LIT>" ) <EOL> f . write ( text ) <EOL> assert get_sha1 ( str ( f ) ) == hash_val <EOL> def test_get_browser ( ) : <EOL> browser = get_browser ( ) <EOL> browser . open ( "<STR_LIT>" ) <EOL> assert browser . viewing_html ( ) <EOL> def test_user_of_email ( ) : <EOL> assert user_of_email ( "<STR_LIT>" ) is None <EOL> assert user_of_email ( "<STR_LIT>" ) is None <EOL> assert user_of_email ( "<STR_LIT>" ) is None <EOL> assert user_of_email ( "<STR_LIT>" ) == "<STR_LIT>" </s>
