コード例 #1
0
ファイル: test_get.py プロジェクト: corriander/aachaos
 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)
コード例 #2
0
ファイル: test_get.py プロジェクト: corriander/aachaos
 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)