def test_iface_match_other_has_less(self): iface_info = gen_foo_iface_info() iface_info["foo_a"] = "b" iface = BaseIface(iface_info) other_iface = BaseIface(gen_foo_iface_info()) assert not iface.match(other_iface)
def test_iface_match_other_has_more(self): iface = BaseIface(gen_foo_iface_info()) other_iface_info = gen_foo_iface_info() other_iface_info["foo_a"] = "b" other_iface = BaseIface(other_iface_info) assert iface.match(other_iface)