from pkg_resources import resource_filename as rs_fn
from sidewinder_spec.nomad import parse


def test_nomad_parser():
    fp = rs_fn('sidewinder_spec', 'data/nomad')
    for n, d in parse(fp):
        assert n in {'start', 'descriptor', 'event', 'stop'}
        assert isinstance(d, dict)
    assert n

@@ -161,16 +161,26 @@
 nomad')%0A
+    c = 0%0A
     for 
@@ -294,16 +294,30 @@
 , dict)%0A
+        c = 1%0A
     asse
@@ -319,10 +319,15 @@
  assert 
-n
+c == 1
 %0A

make counter for test