コード例 #1
0
 def test_timestamp_check_get_cutoff_with_non_int(self):
     ts = '%Y.%m.%d'
     tu = 'days'
     v  = 'foo'
     timestamp = '2015.01.01'
     utc_now = datetime(2015, 1, 5)
     self.assertFalse(curator.timestamp_check(timestamp, timestring=ts,
         time_unit=tu, value=v, utc_now=utc_now))
コード例 #2
0
 def test_timestamp_check_else(self):
     ts = '%Y.%m.%d'
     tu = 'days'
     v  = 30
     timestamp = '2015.01.01'
     utc_now = datetime(2015, 1, 5)
     self.assertFalse(curator.timestamp_check(timestamp, timestring=ts,
         time_unit=tu, value=v, utc_now=utc_now))
コード例 #3
0
ファイル: test_api_filter.py プロジェクト: servomac/curator
 def test_timestamp_check_get_cutoff_with_non_int(self):
     ts = '%Y.%m.%d'
     tu = 'days'
     v  = 'foo'
     timestamp = '2015.01.01'
     utc_now = datetime(2015, 1, 5)
     self.assertFalse(curator.timestamp_check(timestamp, timestring=ts,
         time_unit=tu, value=v, utc_now=utc_now))