mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Improve management test branch coverage
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
b8f417d485
commit
e3e69006a4
1 changed files with 10 additions and 0 deletions
|
|
@ -34,6 +34,16 @@ class ManagementCommandTestCase(TestCase):
|
|||
expected = '2 attempts removed.\n'
|
||||
self.assertEqual(expected, out.getvalue())
|
||||
|
||||
def test_axes_reset_not_found(self):
|
||||
out = StringIO()
|
||||
call_command('axes_reset', stdout=out)
|
||||
|
||||
out = StringIO()
|
||||
call_command('axes_reset', stdout=out)
|
||||
|
||||
expected = 'No attempts found.\n'
|
||||
self.assertEqual(expected, out.getvalue())
|
||||
|
||||
def test_axes_reset_ip(self):
|
||||
out = StringIO()
|
||||
call_command('axes_reset_ip', '10.0.0.1', stdout=out)
|
||||
|
|
|
|||
Loading…
Reference in a new issue