def test_nonempty_false_nones(self): series = TimeSeries("collectd.test-db.load.value", 0, 4, 1, [None, None, None, None]) self.assertFalse(nonempty(series))
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))
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))