Mercurial > hg > urlmatch
comparison urlmatch.txt @ 8:64935a05afdb
stub tests for diff, as yet unfinished
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 27 Jun 2011 11:14:10 -0700 |
parents | 8bd0c3b2163e |
children | 8d47894191a0 |
comparison
equal
deleted
inserted
replaced
7:ef0553c4bbcd | 8:64935a05afdb |
---|---|
1 urlmatch | 1 urlmatch |
2 ======== | 2 ======== |
3 | |
4 Test basic diff functionality:: | |
5 | |
6 >>> matcher = UrlMatcher() | |
7 >>> matcher.diff('http://www.example.com', 'http://example.com') | |
8 {'domain': [None, None, ('www', None)]} | |
9 >>> matcher.diff('http://example.com', 'https://example.com') | |
10 {'scheme': ('http', 'https')} | |
3 | 11 |
4 Test making a basic tree:: | 12 Test making a basic tree:: |
5 | 13 |
6 >>> urlmatcher = URLmatcher() | 14 >>> urlmatcher = URLmatcher() |
7 >>> urls = ['http://example.com/foo/bar.html', | 15 >>> urls = ['http://example.com/foo/bar.html', |