mojo/public/tools/mojom/mojom/parse/conditional_features_unittest.py
def testFilterMethod(self):
    """Test that Parameters are correctly filtered from a Method."""
    method_source = """
      interface MyInterface {
        [EnableIf=blue]
        MyMethod([EnableIf=purple] int32 a) => ([EnableIf=red] int32 b);
      };
    """
    expected_source = """
      interface MyInterface {
        [EnableIf=blue]
        MyMethod() => ([EnableIf=red] int32 b);
      };
    """
    self.parseAndAssertEqual(method_source, expected_source)
Test that Parameters are correctly filtered from a Method.
Test that Parameters are correctly filtered from a Method.
Test that Parameters are correctly filtered from a Method .
def testFilterMethod(self):
    method_source = """
      interface MyInterface {
        [EnableIf=blue]
        MyMethod([EnableIf=purple] int32 a) => ([EnableIf=red] int32 b);
      };
    """
    expected_source = """
      interface MyInterface {
        [EnableIf=blue]
        MyMethod() => ([EnableIf=red] int32 b);
      };
    """
    self.parseAndAssertEqual(method_source, expected_source)
def testFilterMethod ( self ) : method_source = """
      interface MyInterface {
        [EnableIf=blue]
        MyMethod([EnableIf=purple] int32 a) => ([EnableIf=red] int32 b);
      };
    """ expected_source = """
      interface MyInterface {
        [EnableIf=blue]
        MyMethod() => ([EnableIf=red] int32 b);
      };
    """ self . parseAndAssertEqual ( method_source , expected_source )
Test that Parameters are correctly filtered from a Method.
Test that Parameters are correctly filtered from a Method .
"""Test that Parameters are correctly filtered from a Method."""
self