def test_no_cached_values(self): '''when no cache values are found an empty DataFrame should be returned.''' df = vc_mongo_driver.read_frame(qry={'this is not in the cache' : True}, index='date', values='price', collection=self.collection, ) self.assertTrue(df.empty)
def test_read_frame(self): '''read a Dataframe from mongo.''' df = vc_mongo_driver.read_frame(qry={}, index='date', values='price', collection=self.collection, ) assert_frame_equal(df, self.test_df)
def test_no_cached_values(self): '''when no cache values are found an empty DataFrame should be returned.''' df = vc_mongo_driver.read_frame( qry={'this is not in the cache': True}, index='date', values='price', collection=self.collection, ) self.assertTrue(df.empty)
def test_read_frame(self): '''read a Dataframe from mongo.''' df = vc_mongo_driver.read_frame( qry={}, index='date', values='price', collection=self.collection, ) assert_frame_equal(df, self.test_df)