예제 #1
0
 def test_nonempty_false_nones(self):
     series = TimeSeries("collectd.test-db.load.value", 0, 4, 1,
                         [None, None, None, None])
     self.assertFalse(nonempty(series))
예제 #2
0
 def test_nonempty_false_nones(self):
   series = TimeSeries("collectd.test-db.load.value", 0, 4, 1, [None, None, None, None])
   self.assertFalse(nonempty(series))
예제 #3
0
 def test_nonempty_true(self):
     values = range(0, 100)
     series = TimeSeries("collectd.test-db.load.value", 0, len(values), 1,
                         values)
     self.assertTrue(nonempty(series))
예제 #4
0
 def test_nonempty_true(self):
   values = range(0,100)
   series = TimeSeries("collectd.test-db.load.value", 0, len(values), 1, values)
   self.assertTrue(nonempty(series))