changeset 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 ef0553c4bbcd
children 8d47894191a0
files urlmatch.txt
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()