Пример #1
0
 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')
Пример #2
0
 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')