def testSortingIgnoreGroups(self):
     tw = template_writer.TemplateWriter(None, None)
     sorted_list = tw.FlattenGroupsAndSortPolicies(POLICY_DEFS)
     self.assertEqual(sorted_list, IGNORE_GROUPS_SORTED_POLICY_DEFS)
 def testSortingGroupsFirst(self):
     tw = template_writer.TemplateWriter(None, None)
     sorted_list = tw.SortPoliciesGroupsFirst(POLICY_DEFS)
     self.assertEqual(sorted_list, GROUP_FIRST_SORTED_POLICY_DEFS)