def test_versions(self):
        qs = SimpleRelated.objects.language('en')
        if django.VERSION < (1, 7):
            self.assertRaises(AttributeError, getattr, qs, 'update_or_create')
dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/query.py/MinimumVersionTests.test_versions/original