diff options
Diffstat (limited to 'servo/tests')
-rw-r--r-- | servo/tests/test_models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/servo/tests/test_models.py b/servo/tests/test_models.py index 263834a..b0ef6e7 100644 --- a/servo/tests/test_models.py +++ b/servo/tests/test_models.py @@ -6,6 +6,7 @@ from django.test import TestCase from servo.models.common import Configuration from servo.models.order import Order from servo.models.account import User +from servo.models.queue import Queue class ConfigurationTests(TestCase): @@ -25,5 +26,11 @@ class ServiceOrderTests(TestCase): self.assertEquals(o.location, o.checkin_location) +class QueueTests(TestCase): + def test_absolute_url(self): + q = Queue.objects.get(pk=1) + self.assertRegexpMatches(q.get_absolute_url(), r'\?queue=\d$') + + if __name__ == '__main__': unittest.main() |