'Validate deptypes in dt-diamond spec.
This ensures that concretization works properly when two packages
depend on the same dependency in different ways.'

def check_diamond_deptypes(self, spec):

    assert (spec['dt-diamond']._dependencies['dt-diamond-left'].deptypes == ('build', 'link'))
    assert (spec['dt-diamond']._dependencies['dt-diamond-right'].deptypes == ('build', 'link'))
    assert (spec['dt-diamond-left']._dependencies['dt-diamond-bottom'].deptypes == ('build',))
    assert (spec['dt-diamond-right']._dependencies['dt-diamond-bottom'].deptypes == ('build', 'link', 'run'))
