'MetadataDict: case-insensitive lookup'

def test_metadata_dict_ci(self):

    expected = u'na\xefve'
    key_var = '$TitlE'
    m = MetadataDict({key_var.lower(): u'na\xefve'})
    self.assertFalse(('$track' in m))
    self.assertTrue(('$tITLe' in m), "cross-case    lookup    with    'in'")
    self.assertEqual(m[key_var], expected, 'cross-case    lookup    success')
    self.assertEqual(m[key_var.lower()], expected, 'same-case    lookup    succes')
