def test_deepsky_stellarium(self):
        observer = Observer.from_str("N 48° 51' 12.27\"", "E 2° 20' 55.68\"")
        obstime = Time.from_localtime_str("2017-08-16 23:25:22",
                                          "Europe/Paris")
        dsobject = EquatorialCoordObject.from_str(
            "20:22:00.54", "-14° 43' 20.4\"")  # beta Cap

        apparent = dsobject.calculate_apparent_position(observer, obstime)
        self.assertAlmostEqual(apparent.azimuth,
                               162 + (32 / 60) + (50.2 / 3600),
                               places=2)
        self.assertAlmostEqual(apparent.altitude,
                               24 + (49 / 60) + (28.4 / 3600),
                               places=1)
    def test_jupiter(self):
        observer = Observer.from_str("N 48° 51' 12.27\"", "E 2° 20' 55.68\"")
        obstime = Time.from_localtime_str("2017-08-16 20:00:53",
                                          "Europe/Paris")

        jupiter = self._jupiter()
        equatorial = jupiter.calculate_equatorial_position(observer, obstime)
        self.assertAlmostEqual(equatorial.ra,
                               13 + (13 / 60) + (12.22 / 3600),
                               places=2)
        self.assertAlmostEqual(equatorial.dec,
                               -(6 + (31 / 60) + (28.0 / 3600)),
                               places=1)
        apparent = jupiter.calculate_apparent_position(observer, obstime)
        self.assertAlmostEqual(apparent.azimuth,
                               224 + (11 / 60) + (15.7 / 3600),
                               places=0)
        self.assertAlmostEqual(apparent.altitude,
                               24 + (45 / 60) + (32.5 / 3600),
                               places=1)