mirror of
https://github.com/home-assistant/core.git
synced 2025-05-07 15:39:18 +00:00

If a mock's assert_called_once_with method is misspelled (e.g. asert_called_once_with) then the test will appear as passing. Therefore, this commit removes all instances of assert_called_once_with calls and replaces them with two assertions: self.assertEqual(mock.call_count, 1) self.assertEqual(mock.call_args, mock.call(call_args))