'Testing the attr_value() method.'

def test13_attr_value(self):

    s1 = SpatialReference('WGS84')
    self.assertRaises(TypeError, s1.__getitem__, 0)
    self.assertRaises(TypeError, s1.__getitem__, ('GEOGCS', 'foo'))
    self.assertEqual('WGS    84', s1['GEOGCS'])
    self.assertEqual('WGS_1984', s1['DATUM'])
    self.assertEqual('EPSG', s1['AUTHORITY'])
    self.assertEqual(4326, int(s1[('AUTHORITY', 1)]))
    self.assertEqual(None, s1['FOOBAR'])
