Code Duplication    Length = 10-10 lines in 2 locations

aacgmv2/tests/test_py_aacgmv2.py 2 locations

@@ 349-358 (lines=10) @@
346
        np.testing.assert_allclose(self.lon_out, [83.30272053], rtol=1e-4)
347
        np.testing.assert_allclose(self.r_out, [1.46944431], rtol=1e-4)
348
349
    def test_convert_latlon_arr_badidea_trace(self):
350
        """Test array latlon conversion for BADIDEA with trace"""
351
        code = "G2A | BADIDEA | TRACE"
352
        (self.lat_out, self.lon_out,
353
         self.r_out) = aacgmv2.convert_latlon_arr([60], [0], [7000],
354
                                                  self.dtime, code)
355
356
        np.testing.assert_allclose(self.lat_out, [69.317391], rtol=1e-4)
357
        np.testing.assert_allclose(self.lon_out, [85.099499], rtol=1e-4)
358
        np.testing.assert_allclose(self.r_out, [2.09726], rtol=1e-4)
359
360
    def test_convert_latlon_arr_location_failure(self):
361
        """Test array latlon conversion with a bad location"""
@@ 338-347 (lines=10) @@
335
                                    [1.04551548, 1.04546847, 1.04542272]],
336
                                   rtol=1e-4)
337
338
    def test_convert_latlon_arr_badidea(self):
339
        """Test array latlon conversion for BADIDEA"""
340
        code = "G2A | BADIDEA"
341
        (self.lat_out, self.lon_out,
342
         self.r_out) = aacgmv2.convert_latlon_arr([60], [0], [3000],
343
                                                  self.dtime, code)
344
345
        np.testing.assert_allclose(self.lat_out, [64.35677791], rtol=1e-4)
346
        np.testing.assert_allclose(self.lon_out, [83.30272053], rtol=1e-4)
347
        np.testing.assert_allclose(self.r_out, [1.46944431], rtol=1e-4)
348
349
    def test_convert_latlon_arr_badidea_trace(self):
350
        """Test array latlon conversion for BADIDEA with trace"""