Skip to content

Commit

Permalink
Round out test coverage for Mock Call comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw296 committed Nov 1, 2022
1 parent 894b6c3 commit 0d120ed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testfixtures/tests/test_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,20 @@ def test_mock_call_same_strict(self):
m.foo(1, 2, x=3)
compare(m.mock_calls, m.mock_calls, strict=True)

def test_mock_call_equal(self):
m1 = Mock()
m1.foo(1, 2, x=3)
m2 = Mock()
m2.foo(1, 2, x=3)
compare(m1.mock_calls, m2.mock_calls)

def test_mock_call_equal_strict(self):
m1 = Mock()
m1.foo(1, 2, x=3)
m2 = Mock()
m2.foo(1, 2, x=3)
compare(m1.mock_calls, m2.mock_calls, strict=True)

def test_calls_different(self):
m1 = Mock()
m2 = Mock()
Expand Down

0 comments on commit 0d120ed

Please sign in to comment.