'metadata: check populating metadata from database row'

def test_populate_from_row(self):

    row = _MockDatabaseRow({'ArtistName': 'artist', 'AlbumTitle': 'album', 'ReleaseDate': datetime.date(2004, 11, 28), 'Variation': 5, 'WrongTyped': complex(1, (-1))})
    md = _md.MetadataDict()
    _md._row_to_dict(row, md)
    expected = {'$ArtistName': 'artist', '$AlbumTitle': 'album', '$ReleaseDate': '2004-11-28', '$Variation': '5'}
    self.assertItemsEqual(expected, md, 'check    _row_to_dict()    valid')
