aboutsummaryrefslogtreecommitdiffstats
path: root/servo/tests
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-11-07 18:43:43 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-11-07 18:43:43 +0200
commit7dbcacd01bec20db3ccb841bec1e8e4268a4b052 (patch)
treeefb19d27b0420ce734e895a48fd5622f77dcc634 /servo/tests
parentc087462f4deec9650da7b965ef8ecfb2fece07f3 (diff)
downloadServo-7dbcacd01bec20db3ccb841bec1e8e4268a4b052.tar.gz
Servo-7dbcacd01bec20db3ccb841bec1e8e4268a4b052.tar.bz2
Servo-7dbcacd01bec20db3ccb841bec1e8e4268a4b052.zip
Fixed spurious keyword error
list_orders() got an unexpected keyword argument 'queue'
Diffstat (limited to 'servo/tests')
-rw-r--r--servo/tests/test_models.py7
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()