'The database connection is still usable after a DatabaseError in
get_or_create() (#20463).'

def test_savepoint_rollback(self):

    Tag.objects.create(text='foo')
    with self.assertRaises(DatabaseError):
        Tag.objects.get_or_create(pk=123456789, defaults={'text': 'foo'})
    Tag.objects.create(text='bar')
