From 7dbcacd01bec20db3ccb841bec1e8e4268a4b052 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 7 Nov 2016 18:43:43 +0200 Subject: Fixed spurious keyword error list_orders() got an unexpected keyword argument 'queue' --- servo/tests/test_models.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'servo/tests') 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() -- cgit v1.2.3