Code Duplication    Length = 11-12 lines in 2 locations

aacgmv2/tests/test_py_aacgmv2.py 2 locations

@@ 379-390 (lines=12) @@
376
377
class TestGetAACGMCoordArr(TestConvertArray):
378
    """Unit tests for AACGM coordinate array conversion."""
379
    def setup_method(self):
380
        """Create a clean test environment."""
381
        self.dtime = dt.datetime(2015, 1, 1, 0, 0, 0)
382
        self.ddate = dt.date(2015, 1, 1)
383
        self.lat_in = [60.0, 61.0]
384
        self.lon_in = [0.0, 0.0]
385
        self.alt_in = [300.0, 300.0]
386
        self.method = 'TRACE'
387
        self.out = None
388
        self.ref = [[58.22676, 59.31847], [81.16135, 81.60797],
389
                    [0.18880, 0.21857]]
390
        self.rtol = 1.0e-4
391
392
    def teardown_method(self):
393
        """Clean up the test envrionment."""
@@ 146-156 (lines=11) @@
143
144
class TestConvertLatLonArr(TestConvertArray):
145
    """Unit tests for Lat/Lon array conversion."""
146
    def setup_method(self):
147
        """Create a clean test environment."""
148
        self.dtime = dt.datetime(2015, 1, 1, 0, 0, 0)
149
        self.ddate = dt.date(2015, 1, 1)
150
        self.lat_in = [60.0, 61.0]
151
        self.lon_in = [0.0, 0.0]
152
        self.alt_in = [300.0, 300.0]
153
        self.method = 'TRACE'
154
        self.out = None
155
        self.ref = [[58.2268, 59.3184], [81.1613, 81.6080], [1.0457, 1.0456]]
156
        self.rtol = 1.0e-4
157
158
    def teardown_method(self):
159
        """Clean up the test envrionment."""