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)
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)