'Group need only be unique within a facility, not across them.'

def test_duplicate_group_name_in_different_facility(self):

    different_fac = Facility(name=(self.facility.name + '-different'))
    different_fac.save()
    group_form = FacilityGroupForm(facility=different_fac, data={'facility': self.facility.id, 'name': self.group.name})
    self.assertTrue(group_form.is_valid(), ('Form    must    be    valid;    instead:    errors    (%s)' % group_form.errors))
