Code Duplication    Length = 17-17 lines in 2 locations

tests/settings/ConfigurationGatheringTest.py 2 locations

@@ 78-94 (lines=17) @@
75
76
        Constants.system_coafile = tmp
77
78
    def test_user_coafile_parsing(self):
79
        tmp = Constants.user_coafile
80
81
        Constants.user_coafile = os.path.abspath(os.path.join(
82
            os.path.dirname(os.path.realpath(__file__)),
83
            "section_manager_test_files",
84
            "default_coafile"))
85
86
        sections, local_bears, global_bears, targets = gather_configuration(
87
            lambda *args: True,
88
            self.log_printer,
89
            arg_list=[])
90
91
        self.assertEqual(str(sections["test"]),
92
                         "test {value : '1', testval : '5'}")
93
94
        Constants.user_coafile = tmp
95
96
    def test_nonexistent_file(self):
97
        filename = "bad.one/test\neven with bad chars in it"
@@ 60-76 (lines=17) @@
57
58
        self.assertEqual(len(local_bears["default"]), 0)
59
60
    def test_default_coafile_parsing(self):
61
        tmp = Constants.system_coafile
62
63
        Constants.system_coafile = os.path.abspath(os.path.join(
64
            os.path.dirname(os.path.realpath(__file__)),
65
            "section_manager_test_files",
66
            "default_coafile"))
67
68
        sections, local_bears, global_bears, targets = gather_configuration(
69
            lambda *args: True,
70
            self.log_printer,
71
            arg_list=[])
72
73
        self.assertEqual(str(sections["test"]),
74
                         "test {value : '1', testval : '5'}")
75
76
        Constants.system_coafile = tmp
77
78
    def test_user_coafile_parsing(self):
79
        tmp = Constants.user_coafile