'An inactive user can\'t authenticate.'

def test_authenticate_inactive(self):

    self.assertEqual(authenticate(**self.user_credentials), self.user)
    self.user.is_active = False
    self.user.save()
    self.assertIsNone(authenticate(**self.user_credentials))
