'Test assigning to a header slice selected via wildcard matching.'

def test_wildcard_slice_assignment(self):

    header = fits.Header([('ABC', 0), ('DEF', 1), ('ABD', 2)])
    header['AB*'] = 1
    assert (header[0] == 1)
    assert (header[2] == 1)
    header['AB*'] = 'GH'
    assert (header[0] == 'GH')
    assert (header[2] == 'GH')
    header['AB*'] = ['H', 'I']
    assert (header[0] == 'H')
    assert (header[2] == 'I')
