def test_resources(db, fname, backend): r = root_metrics.resources(db=db) obs = r() assert_less(0, len(obs)) assert_equal('Resources', r.name)
def test_resources_non_existent_filter(db, fname, backend): r = root_metrics.resources(db=db) obs = r(conds=[('NotAColumn', '!=', 'not-a-value')]) assert_less(0, len(obs)) assert_equal('Resources', r.name)
def test_resources_non_existent_filter(db, fname, backend): r = root_metrics.resources(db=db) obs = r(conds=[("NotAColumn", "!=", "not-a-value")]) assert_less(0, len(obs)) assert_equal("Resources", r.name)