<s> import unittest <EOL> import sys <EOL> from chai . comparators import * <EOL> class ComparatorsPy2Test ( unittest . TestCase ) : <EOL> def test_is_a_unicode_test ( self ) : <EOL> if sys . version_info . major > <NUM_LIT:2> : <EOL> return <EOL> comp = IsA ( str ) <EOL> self . assertTrue ( comp . test ( '<STR_LIT:foo>' ) ) <EOL> self . assertFalse ( comp . test ( u'<STR_LIT:foo>' ) ) <EOL> self . assertFalse ( comp . test ( bytearray ( '<STR_LIT:foo>' ) ) ) </s>
