def test_cleanup_opts_dup_groups_opt(self): o = [("namespace1", [("group1", self.opts + [self.opts[1]]), ("group2", self.opts), ("group3", self.opts + [self.opts[2]])])] e = [("namespace1", [("group1", self.opts), ("group2", self.opts), ("group3", self.opts)])] self.assertEqual(e, generator._cleanup_opts(o))
def test_cleanup_opts_dup_mixed_case_groups_opt(self): o = [("namespace1", [("default", self.opts), ("Default", self.opts + [self.opts[1]]), ("DEFAULT", self.opts + [self.opts[2]]), ("group1", self.opts + [self.opts[1]]), ("Group1", self.opts), ("GROUP1", self.opts + [self.opts[2]])])] e = [("namespace1", [("DEFAULT", self.opts), ("group1", self.opts)])] self.assertEqual(e, generator._cleanup_opts(o))
def test_cleanup_opts_dup_groups_opt(self): o = [ ( "namespace1", [("group1", self.opts + [self.opts[1]]), ("group2", self.opts), ("group3", self.opts + [self.opts[2]])], ) ] e = [("namespace1", [("group1", self.opts), ("group2", self.opts), ("group3", self.opts)])] self.assertEqual(e, generator._cleanup_opts(o))
def test_cleanup_opts_dup_mixed_case_groups_opt(self): o = [("namespace1", [ ("default", self.opts), ("Default", self.opts + [self.opts[1]]), ("DEFAULT", self.opts + [self.opts[2]]), ("group1", self.opts + [self.opts[1]]), ("Group1", self.opts), ("GROUP1", self.opts + [self.opts[2]])])] e = [("namespace1", [ ("DEFAULT", self.opts), ("group1", self.opts)])] self.assertEqual(e, generator._cleanup_opts(o))
def test_cleanup_opts_dup_opt(self): o = [("namespace1", [ ("group1", self.opts + [self.opts[0]])])] e = [("namespace1", [ ("group1", self.opts)])] self.assertEqual(e, generator._cleanup_opts(o))
def test_cleanup_opts_default(self): o = [("namespace1", [ ("group1", self.opts)])] self.assertEqual(o, generator._cleanup_opts(o))
def test_cleanup_opts_default(self): o = [("namespace1", [("group1", self.opts)])] self.assertEqual(o, generator._cleanup_opts(o))