[issue38494] Add assert_not_called_with

2019-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue38494] Add assert_not_called_with

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38494] Add assert_not_called_with

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you know why there is assertRaises(), but there is no assertNotRaises()? Because assertNotRaises(Exception, callable, *args, **kwargs) would be equivalent to just callable(*args, **kwargs). Call the function, and if is raised an exception, the test will

[issue38494] Add assert_not_called_with

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: assert_called_with only checks against the last call. The docs were have been fixed with issue35946. So after multiple calls the you might get an assertion error in your proposed implementation leading to the conclusion that the call never happened

[issue38494] Add assert_not_called_with

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak versions: +Python 3.9 ___ Python tracker ___ _

[issue38494] Add assert_not_called_with

2019-10-15 Thread valkheim
New submission from valkheim : This would be nice to integrate an assert_not_called_with feature. I had to implement it to test a publish/subscribe patterns where multiple subscibers got called but not with the same arguments. Here is my implementation: ``` def assert_not_called_with(self, *