Skip to content

Commit

Permalink
Fix formatting for a dict to be one key per line
Browse files Browse the repository at this point in the history
  • Loading branch information
paulproteus committed May 22, 2012
1 parent 9a51e75 commit 8a1f45c
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions mysite/customs/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,11 +1308,22 @@ def test_create_bug_that_has_new_date_format(self):

got = tbp.get_parsed_data_dict(self.tm2)
del got['last_polled']
wanted = {'status': 'new', 'as_appears_in_distribution': u'',
wanted = {'status': 'new',
'as_appears_in_distribution': u'',
'description': u"Hi\r\n\r\nWhen embedding sourcecode in wiki pages using the {{{-Makro, I would sometimes like to have line numbers displayed. This would make it possible to reference some lines in a text, like: \r\n\r\n''We got some c-sourcecode here, in line 1, a buffer is allocated, in line 35, some data is copied to the buffer without checking the size of the data...''\r\n\r\nThe svn browser shows line numbers, so I hope this will not be so difficult.",
'importance': '', 'canonical_bug_link': 'http://trac.edgewall.org/ticket/3275', 'date_reported': datetime.datetime(2006, 6, 16, 15, 1, 52),
'submitter_realname': '', 'title': 'Show line numbers when embedding source code in wiki pages', 'people_involved': 3, 'last_touched': datetime.datetime(2010, 11, 26, 13, 45, 45),
'submitter_username': 'erik@\xe2\x80\xa6', 'looks_closed': False, 'good_for_newcomers': False, 'concerns_just_documentation': False, '_project_name': 'Trac'}
'importance': '',
'canonical_bug_link': 'http://trac.edgewall.org/ticket/3275',
'date_reported': datetime.datetime(2006, 6, 16, 15, 1, 52),
'submitter_realname': '',
'title': 'Show line numbers when embedding source code in wiki pages',
'people_involved': 3,
'last_touched': datetime.datetime(2010, 11, 26, 13, 45, 45),
'submitter_username': 'erik@\xe2\x80\xa6',
'looks_closed': False,
'good_for_newcomers': False,
'concerns_just_documentation': False,
'_project_name': 'Trac',
}
self.assertEqual(wanted, got)

@skipIf(TracBugImporter is None, "To run these tests, you must install oh-bugimporters. See ADVANCED_INSTALLATION.mkd for more.")
Expand Down

0 comments on commit 8a1f45c

Please sign in to comment.