def test_is_a_unicode_test(self):
    if sys.version_info.major > 2:
      return
    comp = IsA(str)
    self.assertTrue( comp.test('foo') )
    self.assertFalse( comp.test(u'foo') )
    self.assertFalse( comp.test(bytearray('foo')) )
dataset/ETHPy150Open agoragames/chai/tests/comparator_py2.py/ComparatorsPy2Test.test_is_a_unicode_test/original