Commit 04aae8fd authored by Xavier Thompson's avatar Xavier Thompson

amari/xlog_test.py: Add basic logspec test

parent 7aea53ef
......@@ -78,3 +78,12 @@ zzzqqqrrrr
# EOF
_ = xr.read()
assert _ is None
def test_LogSpec():
logspec = "stats[samples,rf]/60s"
spec = xlog.LogSpec.parse(logspec)
assert spec.query == "stats"
assert spec.optv == ["samples", "rf"]
assert spec.period == 60.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment