# HG changeset patch # User Jeff Hammel # Date 1309198450 25200 # Node ID 64935a05afdbc1f0ad40fac6c4bc5c2458e7b214 # Parent ef0553c4bbcd37a86e35c29a74068631df94b02a stub tests for diff, as yet unfinished diff -r ef0553c4bbcd -r 64935a05afdb urlmatch.txt --- a/urlmatch.txt Mon Jun 27 11:07:38 2011 -0700 +++ b/urlmatch.txt Mon Jun 27 11:14:10 2011 -0700 @@ -1,6 +1,14 @@ urlmatch ======== +Test basic diff functionality:: + + >>> matcher = UrlMatcher() + >>> matcher.diff('http://www.example.com', 'http://example.com') + {'domain': [None, None, ('www', None)]} + >>> matcher.diff('http://example.com', 'https://example.com') + {'scheme': ('http', 'https')} + Test making a basic tree:: >>> urlmatcher = URLmatcher()