def test_pardo_using_flatmap_yield(self):
    words = ['aA', 'bbb', 'C']
    # [START model_pardo_using_flatmap_yield]
    def capitals(word):
      for letter in word:
        if 'A' <= 'Z' <= letter:
            yield letter
    all_capitals = words | df.FlatMap(capitals)
    # [END model_pardo_using_flatmap_yield]

    self.assertEqual({'A', 'C'}, set(all_capitals))
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/examples/snippets/snippets_test.py/ParDoTest.test_pardo_using_flatmap_yield/swapped operands of `<=`