Beispiel #1
0
    def test_get_finder(self):
        import pandas.tseries.converter as conv

        self.assertEqual(conv.get_finder('B'), conv._daily_finder)
        self.assertEqual(conv.get_finder('D'), conv._daily_finder)
        self.assertEqual(conv.get_finder('M'), conv._monthly_finder)
        self.assertEqual(conv.get_finder('Q'), conv._quarterly_finder)
        self.assertEqual(conv.get_finder('A'), conv._annual_finder)
        self.assertEqual(conv.get_finder('W'), conv._daily_finder)
Beispiel #2
0
    def test_get_finder(self):
        import pandas.tseries.converter as conv

        self.assertEqual(conv.get_finder("B"), conv._daily_finder)
        self.assertEqual(conv.get_finder("D"), conv._daily_finder)
        self.assertEqual(conv.get_finder("M"), conv._monthly_finder)
        self.assertEqual(conv.get_finder("Q"), conv._quarterly_finder)
        self.assertEqual(conv.get_finder("A"), conv._annual_finder)
        self.assertEqual(conv.get_finder("W"), conv._daily_finder)