mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Py3: don't use mock.assert_called_once implemented in 3.6.
This commit is contained in:
parent
e079b4657a
commit
9de940d3d3
@ -189,7 +189,7 @@ class DjangomodCliCommandTestCase(TestCase, LoaderModuleMockMixin):
|
||||
djangomod.createsuperuser(
|
||||
'settings.py', 'testuser', 'user@example.com'
|
||||
)
|
||||
mock.assert_called_once()
|
||||
self.assertEqual(mock.call_count, 1)
|
||||
args, kwargs = mock.call_args
|
||||
# cmdline arguments are extracted from a kwargs dict so order isn't guaranteed.
|
||||
self.assertEqual(len(args), 1)
|
||||
|
Loading…
Reference in New Issue
Block a user