def test_wwv_all_properties_fixture_11(self): self.assertEqual(WWV(fixture_wwv11).station.call, "DK0WCY-2") test_time = datetime.utcnow().replace(hour=20, minute=0, second=0, microsecond=0, tzinfo=UTC) self.assertEqual(WWV(fixture_wwv11).time, test_time) self.assertEqual(WWV(fixture_wwv11).a, 23) self.assertEqual(WWV(fixture_wwv11).k, 3) self.assertEqual(WWV(fixture_wwv11).sfi, 113) self.assertEqual(WWV(fixture_wwv11).expk, 3) self.assertEqual(WWV(fixture_wwv11).r, 88) self.assertEqual(WWV(fixture_wwv11).aurora, False) self.assertEqual(WWV(fixture_wwv11).valid, True)
def test_wwv_all_properties_fixture_5(self): self.assertEqual(WWV(fixture_wwv5).station.call, "W0MU") test_time = datetime.utcnow().replace(hour=21, minute=0, second=0, microsecond=0, tzinfo=UTC) self.assertEqual(WWV(fixture_wwv5).time, test_time) self.assertEqual(WWV(fixture_wwv5).a, 8) self.assertEqual(WWV(fixture_wwv5).k, 2) self.assertEqual(WWV(fixture_wwv5).sfi, 118) self.assertEqual(WWV(fixture_wwv5).expk, None) self.assertEqual(WWV(fixture_wwv5).r, None) self.assertEqual(WWV(fixture_wwv5).aurora, False) self.assertEqual(WWV(fixture_wwv5).valid, True)
def test_wwv_invalid_parameters_5(self): self.assertRaises(Exception, WWV(fixture_wwv_invalid_5)) self.assertEqual(WWV(fixture_wwv_invalid_5).valid, False)
def test_wwv_aurora_fixture_12(self): self.assertEqual(WWV(fixture_wwv12).station.call, "DK0WCY-10") test_time = datetime.utcnow().replace(hour=20, minute=0, second=0, microsecond=0, tzinfo=UTC) self.assertEqual(WWV(fixture_wwv12).aurora, True) self.assertEqual(WWV(fixture_wwv12).valid, True)