def test_url_dirname(self): """ test url_dirname """ self.assertEqual( utils.url_dirname('https://localhost/test/swagger.json'), 'https://localhost/test') self.assertEqual(utils.url_dirname('https://localhost/test/'), 'https://localhost/test/') self.assertEqual(utils.url_dirname('https://localhost/test'), 'https://localhost/test')
def test_url_dirname(self): """ test url_dirname """ self.assertEqual(utils.url_dirname('https://localhost/test/swagger.json'), 'https://localhost/test') self.assertEqual(utils.url_dirname('https://localhost/test/'), 'https://localhost/test/') self.assertEqual(utils.url_dirname('https://localhost/test'), 'https://localhost/test')