Code Duplication    Length = 17-17 lines in 2 locations

tests/settings/ConfigurationGatheringTest.py 2 locations

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