<s> import unittest <EOL> import six <EOL> from langdetect . utils import unicode_block <EOL> class UnicodeBlockTest ( unittest . TestCase ) : <EOL> def test_unicode_block ( self ) : <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_BASIC_LATIN ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_BASIC_LATIN ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_LATIN_1_SUPPLEMENT ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_ARROWS ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_MATHEMATICAL_OPERATORS ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_MATHEMATICAL_OPERATORS ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_MATHEMATICAL_OPERATORS ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_MISCELLANEOUS_TECHNICAL ) <EOL> if len ( six . u ( '<STR_LIT>' ) ) == <NUM_LIT:1> : <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_SUPPLEMENTARY_PRIVATE_USE_AREA_A ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_SUPPLEMENTARY_PRIVATE_USE_AREA_A ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_SUPPLEMENTARY_PRIVATE_USE_AREA_B ) <EOL> self . assertEqual ( unicode_block . unicode_block ( six . u ( '<STR_LIT>' ) ) , unicode_block . UNICODE_SUPPLEMENTARY_PRIVATE_USE_AREA_B ) </s>
