def test_replace_colon ( ) : data = ( ( "zone:aap" , '@' , "zone@aap" ) , # s, r, replaced ) for s , r , replaced in data : result = replace_colon ( s , r ) assert result == replaced
multiple colons for string python
py . test for replace_colon
def test_replace_colon():
    """py.test for replace_colon"""
    data = (("zone:aap", '@', "zone@aap"),# s, r, replaced
    )    
    for s, r, replaced in data:
        result = replace_colon(s, r)
        assert result == replaced