Example #1
0
 def test_commit_with_whitespace_returns_significant_message(self):
     commit = '    '.join(['\r\n'] * 5)
     commit += 'Hello world!'
     result = github.clean_commit(commit)
     eq_(result, 'Hello world!')
Example #2
0
 def test_html_is_stripped(self):
     commit = '    '.join(['\r\n'] * 5)
     commit += '<a href="http://us-ignite.org/">Hello world!</a>'
     result = github.clean_commit(commit)
     eq_(result, 'Hello world!')
Example #3
0
 def test_empty_commit_returns_defualt_value(self):
     empty = '    '.join(['\r\n'] * 10)
     result = github.clean_commit(empty)
     eq_(result, 'Missing commit message.')