Anonymous avatar Anonymous committed cc16856

[svn] added failing auto_link test in regard to #100

Comments (0)

Files changed (1)


                        'link3_raw': '',
                        'link4_raw': '',
                        'link5_raw': '',
+                       'link6_raw': ''
         result_values_templates = { 'email_result': '<a href="mailto:${email_raw}">${email_raw}</a>',
                                     'link2_result': '<a href="http://${link2_raw}">${link2_raw}</a>',
                                     'link3_result': '<a href="${link3_raw}">${link3_raw}</a>',
                                     'link4_result': '<a href="${link4_raw}">${link4_raw}</a>',
-                                    'link5_result': '<a href="${link5_raw}">${link5_raw}</a>'
+                                    'link5_result': '<a href="${link5_raw}">${link5_raw}</a>',
+                                    'link6_result': '<a href=""></a>'
         result_values = {}
         self.assertEqual( '<p>%(link5_result)s Link</p>' %result_values, auto_link('<p>%(link5_raw)s Link</p>' %raw_values))
         self.assertEqual( 'Go to %(link5_result)s.' %result_values, auto_link('Go to %(link5_raw)s.' %raw_values))
         self.assertEqual( '<p>Say hello to %(email_result)s, then go to %(link5_result)s.</p>' %result_values, auto_link('<p>Say hello to %(email_raw)s, then go to %(link5_raw)s.</p>' %raw_values))
+        self.assertEqual('%(link6_result)s' % result_values, auto_link('%(link6_raw)s' % raw_values))
 if __name__ == '__main__':
     suite = [unittest.makeSuite(TestTextHelper)]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.