Add missing docstrings

This commit is contained in:
Valentin Samir 2016-07-23 19:12:44 +02:00
parent d6b91033d4
commit ff9566289d
2 changed files with 2 additions and 0 deletions

View File

@ -737,6 +737,7 @@ class Ticket(models.Model):
TIMEOUT = settings.CAS_TICKET_TIMEOUT
class DoesNotExist(Exception):
"""raised in :meth:`Ticket.get` then ticket prefix and ticket classes mismatch"""
pass
def __str__(self):

View File

@ -1193,6 +1193,7 @@ class ValidateServiceTestCase(TestCase, XmlContent):
self.assert_success(response, settings.CAS_TEST_USER, settings.CAS_TEST_ATTRIBUTES)
def test_validate_proxy(self):
"""test ProxyTicket validation on /proxyValidate and /serviceValidate"""
ticket = get_proxy_ticket(self.service)
client = Client()
# requesting validation with a good (ticket, service)