Пример #1
0
 def test_build_url_database(self):
     url = build_database_url(host='host', password='pwd', database='test')
     self.assertEqual(url, 'mysql://root:[email protected]:3306/test')
Пример #2
0
 def test_build_url_host(self):
     url = build_database_url('host')
     self.assertEqual(url, 'mysql://[email protected]:3306/')