3737
3838class TestGithubLinks (unittest .TestCase ):
3939 maxDiff = None
40-
40+
4141 def assertMarkdownRenders (self , source , expected , ** kwargs ):
4242 'Test that source Markdown text renders to expected output.'
4343 configs = {'user' : 'Python-Markdown' , 'project' : 'github-links' }
@@ -52,37 +52,37 @@ def test_issue(self):
5252 'href="https://github.com/Python-Markdown/github-links/issues/123" '
5353 'title="GitHub Issue Python-Markdown/github-links #123">#123</a>.</p>' ,
5454 )
55-
55+
5656 def test_issue_leading_zero (self ):
5757 self .assertMarkdownRenders (
5858 'Issue #012.' ,
5959 '<p>Issue <a class="gh-link gh-issue" '
6060 'href="https://github.com/Python-Markdown/github-links/issues/12" '
6161 'title="GitHub Issue Python-Markdown/github-links #12">#012</a>.</p>' ,
6262 )
63-
63+
6464 def test_non_issue (self ):
6565 self .assertMarkdownRenders (
6666 'Issue #notanissue.' ,
6767 '<p>Issue #notanissue.</p>' ,
6868 )
69-
69+
7070 def test_issue_with_project (self ):
7171 self .assertMarkdownRenders (
7272 'Issue Organization/Project#123.' ,
7373 '<p>Issue <a class="gh-link gh-issue" '
7474 'href="https://github.com/Organization/Project/issues/123" '
7575 'title="GitHub Issue Organization/Project #123">Organization/Project#123</a>.</p>' ,
7676 )
77-
77+
7878 def test_issue_leading_zero_with_project (self ):
7979 self .assertMarkdownRenders (
8080 'Issue Organization/Project#012.' ,
8181 '<p>Issue <a class="gh-link gh-issue" '
8282 'href="https://github.com/Organization/Project/issues/12" '
8383 'title="GitHub Issue Organization/Project #12">Organization/Project#012</a>.</p>' ,
8484 )
85-
85+
8686 def test_non_issue_with_project (self ):
8787 self .assertMarkdownRenders (
8888 'Issue Organization/Project#notanissue.' ,
@@ -94,12 +94,13 @@ def test_escaped_issue(self):
9494 'Issue \#123.' ,
9595 '<p>Issue #123.</p>' ,
9696 )
97-
97+
9898 def test_escaped_issue_with_project (self ):
9999 self .assertMarkdownRenders (
100100 'Issue Organization/Project\#123.' ,
101101 '<p>Issue Organization/Project#123.</p>' ,
102102 )
103103
104+
104105if __name__ == '__main__' :
105106 unittest .main ()
0 commit comments