Skip to content

Commit

Permalink
fix test where __eq__ test won't work
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed Feb 24, 2021
1 parent 7e8605e commit 6da9ded
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ def test_opinion_explain_contradiction(self, make_opinion_with_holding):
oracle = make_opinion_with_holding["oracle_majority"]
lotus = make_opinion_with_holding["lotus_majority"]
explanation = lotus.holdings[6].explain_contradiction(oracle.holdings[10])
expected = ContextRegister()
expected.insert_pair(
Entity("the Lotus menu command hierarchy"), Entity("the Java API")
assert (
explanation.context["<the Lotus menu command hierarchy>"].name
== "the Java API"
)
assert explanation.context == expected
assert "<the Lotus menu command hierarchy> is like <the Java API>" in str(
explanation
)
Expand Down

0 comments on commit 6da9ded

Please sign in to comment.