Fix 'urlhandlers' output
This commit is contained in:
parent
e0b65b9603
commit
7838d7ceb5
@ -974,7 +974,7 @@ class MpdHandler(object):
|
|||||||
|
|
||||||
Gets a list of available URL handlers.
|
Gets a list of available URL handlers.
|
||||||
"""
|
"""
|
||||||
return self.backend.uri_handlers
|
return [(u'handler', uri) for uri in self.backend.uri_handlers]
|
||||||
|
|
||||||
@handle_pattern(r'^clearerror$')
|
@handle_pattern(r'^clearerror$')
|
||||||
def _status_clearerror(self):
|
def _status_clearerror(self):
|
||||||
|
|||||||
@ -1120,5 +1120,4 @@ class ReflectionHandlerTest(unittest.TestCase):
|
|||||||
def test_urlhandlers(self):
|
def test_urlhandlers(self):
|
||||||
result = self.h.handle_request(u'urlhandlers')
|
result = self.h.handle_request(u'urlhandlers')
|
||||||
self.assert_(u'OK' in result)
|
self.assert_(u'OK' in result)
|
||||||
result = result[0]
|
self.assert_(u'handler: dummy:' in result)
|
||||||
self.assert_('dummy:' in result)
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user