<s> from unittest import TestCase <EOL> from forgery_py . forgery import name <EOL> from forgery_py . dictionaries_loader import get_dictionary <EOL> class NameForgeryTestCase ( TestCase ) : <EOL> def test_first_name ( self ) : <EOL> result = name . first_name ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) or result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> result = name . male_first_name ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> result = name . female_first_name ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_last_name ( self ) : <EOL> result = name . last_name ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_full_name ( self ) : <EOL> result = name . full_name ( ) <EOL> assert len ( result . split ( '<STR_LIT:U+0020>' ) ) == <NUM_LIT:2> <EOL> def test_company_name ( self ) : <EOL> result = name . company_name ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_job_title_suffix ( self ) : <EOL> result = name . job_title_suffix ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_title ( self ) : <EOL> result = name . title ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_suffix ( self ) : <EOL> result = name . suffix ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_location ( self ) : <EOL> result = name . location ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) <EOL> def test_industry ( self ) : <EOL> result = name . industry ( ) <EOL> assert result + '<STR_LIT:\n>' in get_dictionary ( '<STR_LIT>' ) </s>
