'Similar to test_update_header_card(), but tests the the
`header[\'FOO\'] = \'bar\'` method of updating card values.'

def test_set_card_value(self):

    header = fits.Header()
    comment = 'number    of    bits    per    data    pixel'
    card = fits.Card.fromstring('BITPIX        =    32    /    {}'.format(comment))
    header.append(card)
    header['BITPIX'] = 32
    assert ('BITPIX' in header)
    assert (header['BITPIX'] == 32)
    assert (header.cards[0].keyword == 'BITPIX')
    assert (header.cards[0].value == 32)
    assert (header.cards[0].comment == comment)
