Exemplo n.º 1
0
    def test_find_mod_for_url_html_default(self):
        url = 'https://www.google.com'
        server.setup()

        handler = server.find_mod_for_url(url)

        self.assertEqual("handlers.html_default", handler.__name__)
Exemplo n.º 2
0
    def test_find_mod_for_url_youtube_with_other_params(self):
        url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=xxxxx'
        server.setup()

        handler = server.find_mod_for_url(url)

        self.assertEqual("handlers.youtube", handler.__name__)
Exemplo n.º 3
0
    def test_find_mod_for_url_youtube(self):
        url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
        server.setup()

        handler = server.find_mod_for_url(url)

        self.assertEqual("handlers.youtube", handler.__name__)
Exemplo n.º 4
0
    def test_find_mod_for_url_html_default(self):
        url = 'https://www.google.com'
        server.setup()

        handler = server.find_mod_for_url(url)

        self.assertEqual("handlers.html_default", handler.__name__)
Exemplo n.º 5
0
    def test_find_mod_for_url_youtube_with_other_params(self):
        url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=xxxxx'
        server.setup()

        handler = server.find_mod_for_url(url)

        self.assertEqual("handlers.youtube", handler.__name__)
Exemplo n.º 6
0
    def test_find_mod_for_url_youtube(self):
        url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
        server.setup()

        handler = server.find_mod_for_url(url)

        self.assertEqual("handlers.youtube", handler.__name__)