components/policy/tools/template_writers/writers/adml_writer_unittest.py
def _InitWriterForAddingPolicies(self, writer, policy):
    '''Initialize the writer for adding policies. This method must be
    called before the method "WritePolicy" can be called. It initializes
    attributes of the writer.
    '''
    self._InitWriterForAddingPolicyGroups(writer)
    policy_group = {
        'name': 'PolicyGroup',
        'caption': 'Test Caption',
        'desc': 'This is the test description of the test policy group.',
        'policies': policy,
    }
    writer.BeginPolicyGroup(policy_group)

    string_elements = \
        self.writer._string_table_elem.getElementsByTagName('string')
    for elem in string_elements:
      self.writer._string_table_elem.removeChild(elem)
Initialize the writer for adding policies. This method must be
    called before the method "WritePolicy" can be called. It initializes
    attributes of the writer.
    
Initialize the writer for adding policies. This method must be
called before the method "WritePolicy" can be called. It initializes
attributes of the writer.
Initialize the writer for adding policies . This method must be called before the method " WritePolicy " can be called . It initializes attributes of the writer .
def _InitWriterForAddingPolicies(self, writer, policy):
    self._InitWriterForAddingPolicyGroups(writer)
    policy_group = {
        'name': 'PolicyGroup',
        'caption': 'Test Caption',
        'desc': 'This is the test description of the test policy group.',
        'policies': policy,
    }
    writer.BeginPolicyGroup(policy_group)
    string_elements = \
        self.writer._string_table_elem.getElementsByTagName('string')
    for elem in string_elements:
      self.writer._string_table_elem.removeChild(elem)
def _InitWriterForAddingPolicies ( self , writer , policy ) : self . _InitWriterForAddingPolicyGroups ( writer ) policy_group = { 'name' : 'PolicyGroup' , 'caption' : 'Test Caption' , 'desc' : 'This is the test description of the test policy group.' , 'policies' : policy , } writer . BeginPolicyGroup ( policy_group ) string_elements = self . writer . _string_table_elem . getElementsByTagName ( 'string' ) for elem in string_elements : self . writer . _string_table_elem . removeChild ( elem )
Initialize the writer for adding policies.
Initialize the writer for adding policies .
'''Initialize the writer for adding policies. This method must be
    called before the method "WritePolicy" can be called. It initializes
    attributes of the writer.
    '''
self
writer
policy