コード例 #1
0
def test_resources(db, fname, backend):
    r = root_metrics.resources(db=db)
    obs = r()
    assert_less(0, len(obs))
    assert_equal('Resources', r.name)
コード例 #2
0
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)
コード例 #3
0
ファイル: test_root_metrics.py プロジェクト: cyclus/cymetric
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)
コード例 #4
0
ファイル: test_root_metrics.py プロジェクト: cyclus/cymetric
def test_resources(db, fname, backend):
    r = root_metrics.resources(db=db)
    obs = r()
    assert_less(0, len(obs))
    assert_equal('Resources', r.name)
コード例 #5
0
ファイル: test_root_metrics.py プロジェクト: gonuke/cymetric
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)