Skip to content

Commit

Permalink
Missing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilp0inter committed Jun 1, 2015
1 parent 3f4eb68 commit ad2dc62
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/test_fact.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,16 @@ def my_fact():
is_asserted, _ = res

assert not is_asserted


def test_fact_if_defined__without_facts_returns_False():
import pyknow

@pyknow.fact(if_defined='otherfact')
def my_fact():
pass

res = my_fact()
is_asserted, _ = res

assert not is_asserted

0 comments on commit ad2dc62

Please sign in to comment.