Skip to content

Commit

Permalink
Test that toggle creates an event including the default
Browse files Browse the repository at this point in the history
  • Loading branch information
jkodumal committed Feb 2, 2016
1 parent 29bffaa commit f6eebfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_ldclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_toggle_event():
client.toggle('feature.key', user, default=None)

def expected_event(e):
return e['kind'] == 'feature' and e['key'] == 'feature.key' and e['user'] == user and e['value'] == True
return e['kind'] == 'feature' and e['key'] == 'feature.key' and e['user'] == user and e['value'] == True and e['default'] == None

assert expected_event(client._queue.get(False))

Expand Down

0 comments on commit f6eebfe

Please sign in to comment.