예제 #1
0
 def test_to_anime_season(self):
     self.assertEqual(to_anime_season(datetime(2017, 1, 1, 0, 0)),
                      AniListSeason.WINTER)
     self.assertEqual(to_anime_season(datetime(2017, 4, 1, 0, 0)),
                      AniListSeason.SPRING)
     self.assertEqual(to_anime_season(datetime(2017, 7, 1, 0, 0)),
                      AniListSeason.SUMMER)
     self.assertEqual(to_anime_season(datetime(2017, 10, 1, 0, 0)),
                      AniListSeason.FALL)
예제 #2
0
 def test_to_anime_season(self):
     self.assertEqual(to_anime_season(datetime(2017, 1, 1, 0, 0)), 'winter')
     self.assertEqual(to_anime_season(datetime(2017, 4, 1, 0, 0)), 'spring')
     self.assertEqual(to_anime_season(datetime(2017, 7, 1, 0, 0)), 'summer')
     self.assertEqual(to_anime_season(datetime(2017, 10, 1, 0, 0)), 'fall')