Beispiel #1
0
 def test_usage(self, mock_select_from_quota_vw):
     """Quota returns a time-series of quota remainder."""
     mock_select_from_quota_vw.return_value = self.df_quota_vw
     history = History()
     usage = history.usage(units='B')
     self.assertIsInstance(usage, pandas.Series)
Beispiel #2
0
 def test_quota(self, mock_select_from_quota_vw):
     """Quota is a monthly quota value."""
     mock_select_from_quota_vw.return_value = self.df_quota_vw
     history = History()
     quota = history.quota(units='B')
     self.assertIsInstance(quota, pandas.Series)