@classmethod
  def setup_class(cls):
    super(TestAppend, cls).setup_class()
    if cls.client:
      try:
        cls.client.write('ap', '')
        # can't append to an empty file
        cls.client.write('ap', '', append=True)
        # try a simple append
      except HdfsError as err:
        if str(err) in 'Append is not supported':
          cls.client = None
          # skip these tests if HDFS isn't configured to support appends
        else:
          raise err
dataset/ETHPy150Open mtth/hdfs/test/test_client.py/TestAppend.setup_class/swapped operands of `in`