test_avatica.py 438 Bytes
Newer Older
1
import unittest
Lukáš Lalinský's avatar
Lukáš Lalinský committed
2
from phoenixdb.avatica import parse_url, urlparse
3 4 5 6 7 8 9 10


class ParseUrlTest(unittest.TestCase):

    def test_parse_url(self):
        self.assertEqual(urlparse.urlparse('http://localhost:8765/'), parse_url('localhost'))
        self.assertEqual(urlparse.urlparse('http://localhost:2222/'), parse_url('localhost:2222'))
        self.assertEqual(urlparse.urlparse('http://localhost:2222/'), parse_url('http://localhost:2222/'))