#NEWLINE# def test_embeddedLinkProvided_ReplacesContentWithLink( self ) : #NEWLINE# #INDENT# mockedTicketProvider = Mock ( ) #NEWLINE# mockedTicketProvider . getTicketInfo = self . ticket_side_effect_with_embedded_link #NEWLINE# writer = HtmlWriter . HtmlWriter ( mockedTicketProvider ) #NEWLINE# deps = { #NEWLINE# #INDENT# 'ANY' : 'SomeComponent1: 2.3.*; SomeComponent2: 1.0.0' , #NEWLINE# #UNINDENT# } #NEWLINE# version = '1.0.2.0' #NEWLINE# date = '01-02-2015' #NEWLINE# tickets = [ 'ABCD-1' , 'ABCD-2' ] #NEWLINE# output = writer . printVersionBlock ( deps , version , date , writer ) #NEWLINE# self . assertEqual ( '<div style="width:100%; border: 0px"><a name="1.0.2.0" class="version"></a>\n<h2>1.0.2.0\n<sup><small style="font-size:10px"><i> 01-02-2015</i></small></sup>\n</h2>\n<div style="background: #eee; "><i>Components: \nSomeComponent1: 2.3.*; SomeComponent2: 1.0.0\n</i></div>\n<ul>\n<li style="font-size:14px"><a href="http://some.url">ABCD-2</a> ABCD2 ticket that references <a href="http://some.url/ABCD-1">ABCD-1</a>, <i>reported by</i> <b>test user</b></li>\n<li style="font-size:14px"><a href="http://some.url">ABCD-1</a> ABCD1 ticket that references <a href="http://some.url/ABCD-2">ABCD-2</a>, <i>reported by</i> <b>test user</b></li>\n</ul>\n</div>' , output )