#NEWLINE# def test_setInitialContentParsesMarkdown( self ) : #NEWLINE# #INDENT# mockedTicketProvider = Mock ( ) #NEWLINE# mockedData = '## Upcoming developments ##\n03-02-2015\n\n*  [DBA-3](http://some.url) DBA2 ticket that references \n*  [DBA-4](http://some.url) DBA1 ticket that references \n## 1.0.2.0 ##\n02-02-2015\n\n*  [DBA-2](http://some.url) DBA2 ticket that references [#DBA-1](http://some.url/DBA-1), reported by test user\n*  [DBA-1](http://some.url) DBA1 ticket that references [#DBA-2](http://some.url/DBA-2), reported by test user\n## 1.0.0.1 ##\n01-02-2015\n\n*  [DBA-3](http://some.url) DBA2 ticket that references \n*  [DBA-4](http://some.url) DBA1 ticket that references \n' #NEWLINE# writer = MarkdownWriter . MarkdownWriter ( mockedTicketProvider ) #NEWLINE# output = writer . setInitialContent ( mockedData ) #NEWLINE# self . assertEqual ( 2 , len ( output ) ) #NEWLINE# self . assertEqual ( [ '## 1.0.2.0 ##' , '02-02-2015' , '' , '*  [DBA-2](http://some.url) DBA2 ticket that references [#DBA-1](http://some.url/DBA-1), reported by test user' , '*  [DBA-1](http://some.url) DBA1 ticket that references [#DBA-2](http://some.url/DBA-2), reported by test user' ] , output [ '1.0.2.0' ] ) #NEWLINE# self . assertEqual ( [ '## 1.0.0.1 ##' , '01-02-2015' , '' , '*  [DBA-3](http://some.url) DBA2 ticket that references ' , '*  [DBA-4](http://some.url) DBA1 ticket that references ' , '' ] , output [ '1.0.0.1' ] )