コード例 #1
0
 def testSortingIgnoreGroups(self):
     tw = template_writer.TemplateWriter(None, None)
     sorted_list = tw.FlattenGroupsAndSortPolicies(POLICY_DEFS)
     self.assertEqual(sorted_list, IGNORE_GROUPS_SORTED_POLICY_DEFS)
コード例 #2
0
 def testSortingGroupsFirst(self):
     tw = template_writer.TemplateWriter(None, None)
     sorted_list = tw.SortPoliciesGroupsFirst(POLICY_DEFS)
     self.assertEqual(sorted_list, GROUP_FIRST_SORTED_POLICY_DEFS)