def test_end(self): s = '...;pwd=password' assert scrub_connection_string(s) == '...;pwd=********'
def test_no_match_within_value(self): s = '...pwd=password;...' assert scrub_connection_string(s) == s
def test_start(self): s = 'pwd=password;...' assert scrub_connection_string(s) == 'pwd=********;...'