Example #1
0
 def test_url_with_no_cred(self):
     db_url = 'sqlite:///mysqlitefile'
     actual = utils.sanitize_db_url(db_url)
     self.assertEqual(db_url, actual)
Example #2
0
 def test_url_with_no_cred(self):
     db_url = 'sqlite:///mysqlitefile'
     actual = utils.sanitize_db_url(db_url)
     self.assertEqual(db_url, actual)
Example #3
0
 def test_url_with_cred(self):
     db_url = 'myproto://*****:*****@localhost/myschema'
     expected = 'myproto://****:****@localhost/myschema'
     actual = utils.sanitize_db_url(db_url)
     self.assertEqual(expected, actual)
Example #4
0
 def test_url_with_cred(self):
     db_url = 'myproto://*****:*****@localhost/myschema'
     expected = 'myproto://****:****@localhost/myschema'
     actual = utils.sanitize_db_url(db_url)
     self.assertEqual(expected, actual)