'Test creating a valid comment with a long IPv6 address.
Note that this test should fail when Comment.ip_address is an IPAddress instead of a GenericIPAddress,
but does not do so on SQLite or PostgreSQL, because they use the TEXT and INET types, which already
allow storing an IPv6 address internally.'

def testCreateValidCommentIPv6(self):

    address = u'2a02::223:6cff:fe8a:2e8a'
    a = Article.objects.get(pk=1)
    data = self.getValidData(a)
    self.response = self.client.post(u'/post/', data, REMOTE_ADDR=address)
    self.assertEqual(self.response.status_code, 302)
    self.assertEqual(Comment.objects.count(), 1)
    c = Comment.objects.all()[0]
    self.assertEqual(c.ip_address, address)
    self.assertEqual(c.comment, u'This    is    my    comment')
