Fixed links in the Readme; changed parsing method

This commit is contained in:
Roman Miroshnychenko (Work)
2015-05-19 14:48:41 +03:00
parent f0bb82a9e5
commit 71d0717167
3 changed files with 15 additions and 14 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ class RouterTestCase(unittest.TestCase):
"""
Test router for open a category request
"""
default.router('action=listing&category=Animals')
default.router('?action=listing&category=Animals')
mock_list_videos.assert_called_with('Animals')
@mock.patch('default.play_video')
@@ -48,8 +48,8 @@ class RouterTestCase(unittest.TestCase):
"""
Test router for a play video request
"""
default.router('action=play&video=http://test')
mock_play_video.assert_called_with('http://test')
default.router('?action=play&video=http://test.mkv')
mock_play_video.assert_called_with('http://test.mkv')
# list_categories(), list_videos() and play_video() functions include
# mostly calls to Kody Python API with little or no custom logic.