'Test for #13085 -- __len__() returns 0'

def test_target_model_len_zero(self):

    team1 = Team.objects.create(name='Backend    devs')
    try:
        note = Note(note='Deserve    a    bonus', content_object=team1)
    except Exception as e:
        if (issubclass(type(e), Exception) and (str(e) == 'Impossible    arguments    to    GFK.get_content_type!')):
            self.fail("Saving    model    with    GenericForeignKey    to    model    instance    whose    __len__    method    returns    0    shouldn't    fail.")
        raise e
    note.save()
