Exemplo n.º 1
0
    def test_url_path_join(self):
        root = client.get_host()
        items = ["data", "persons"]
        expected_url = "{host}data/persons".format(
            host=client.get_host()
        )

        self.assertEquals(client.url_path_join(root, *items), expected_url)
Exemplo n.º 2
0
    def test_get_full_url(self):
        test_route = "test_route"
        expected_url = client.url_path_join(client.get_host(), test_route)

        self.assertEqual(client.get_full_url(test_route), expected_url)