@@ -937,7 +937,7 @@ def _call_matcher(self, _call):
937937 return _call
938938
939939 def assert_not_called (self ):
940- """assert that the mock was never called.
940+ """Assert that the mock was never called.
941941 """
942942 if self .call_count != 0 :
943943 msg = ("Expected '%s' to not have been called. Called %s times.%s"
@@ -947,15 +947,15 @@ def assert_not_called(self):
947947 raise AssertionError (msg )
948948
949949 def assert_called (self ):
950- """assert that the mock was called at least once
950+ """Assert that the mock was called at least once.
951951 """
952952 if self .call_count == 0 :
953953 msg = ("Expected '%s' to have been called." %
954954 (self ._mock_name or 'mock' ))
955955 raise AssertionError (msg )
956956
957957 def assert_called_once (self ):
958- """assert that the mock was called only once.
958+ """Assert that the mock was called only once.
959959 """
960960 if not self .call_count == 1 :
961961 msg = ("Expected '%s' to have been called once. Called %s times.%s"
@@ -965,7 +965,7 @@ def assert_called_once(self):
965965 raise AssertionError (msg )
966966
967967 def assert_called_with (self , / , * args , ** kwargs ):
968- """assert that the last call was made with the specified arguments.
968+ """Assert that the last call was made with the specified arguments.
969969
970970 Raises an AssertionError if the args and keyword args passed in are
971971 different to the last call to the mock."""
@@ -987,7 +987,7 @@ def _error_message():
987987
988988
989989 def assert_called_once_with (self , / , * args , ** kwargs ):
990- """assert that the mock was called exactly once and that call was
990+ """Assert that the mock was called exactly once and that call was
991991 with the specified arguments."""
992992 if not self .call_count == 1 :
993993 msg = ("Expected '%s' to be called once. Called %s times.%s"
@@ -999,7 +999,7 @@ def assert_called_once_with(self, /, *args, **kwargs):
999999
10001000
10011001 def assert_has_calls (self , calls , any_order = False ):
1002- """assert the mock has been called with the specified calls.
1002+ """Assert the mock has been called with the specified calls.
10031003 The `mock_calls` list is checked for the calls.
10041004
10051005 If `any_order` is False (the default) then the calls must be
@@ -1044,7 +1044,7 @@ def assert_has_calls(self, calls, any_order=False):
10441044
10451045
10461046 def assert_any_call (self , / , * args , ** kwargs ):
1047- """assert the mock has been called with the specified arguments.
1047+ """Assert the mock has been called with the specified arguments.
10481048
10491049 The assert passes if the mock has *ever* been called, unlike
10501050 `assert_called_with` and `assert_called_once_with` that only pass if
0 commit comments