'Regression test for #708
"like" queries on IP address fields require casting with HOST() (on PostgreSQL).'

def test_ipaddress_on_postgresql(self):

    a = Article(name='IP    test', text='The    body', submitted_from='192.0.2.100')
    a.save()
    self.assertSequenceEqual(Article.objects.filter(submitted_from__contains='192.0.2'), [a])
    self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)
