'metadata: check dictionary intersect function validity'

def test_dict_intersect(self):

    d1 = {'one': 'one', 'two': 'two', 'three': 'zonk'}
    d2 = {'two': 'two', 'three': 'three'}
    expected = {'two': 'two'}
    self.assertItemsEqual(expected, _md._intersect(d1, d2), 'check    dictionary    intersection    is    common    part    indeed')
    del d1['two']
    expected = {}
    self.assertItemsEqual(expected, _md._intersect(d1, d2), 'check    intersection    empty')
