Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cisphyx committed Feb 4, 2021
1 parent 65e0dab commit b4dc6f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/tests/test_lib_stormtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3384,6 +3384,8 @@ async def test_stormtypes_layer_counts(self):

self.eq(6, await core.callStorm("return($lib.layer.get().getPropCount('.created'))"))
self.eq(2, await core.callStorm("return($lib.layer.get().getPropCount(inet:ipv4.created))"))
self.eq(0, await core.callStorm("return($lib.layer.get().getPropCount('.seen'))"))

with self.raises(s_exc.NoSuchProp):
await core.callStorm('return($lib.layer.get().getPropCount(newp:newp))')

Expand Down

0 comments on commit b4dc6f5

Please sign in to comment.