'Test that a roundtrip on a ModelForm doesn\'t alter the TextField value'

def test_textarea_trailing_newlines(self):

    article = Article.objects.create(content=u'\nTst\n')
    self.selenium.get((u'%s%s' % (self.live_server_url, reverse(u'article_form', args=[article.pk]))))
    self.selenium.find_element_by_id(u'submit').submit()
    article = Article.objects.get(pk=article.pk)
    self.assertEqual(article.content, u'\r\nTst\r\n')
