def test_unit_propagation_mismatch(self, unit1, unit2, op): with pytest.warns(UserWarning): assert Map._unit_propagation(unit1, unit2, op) is None
def test_unit_propagation(self, unit1, unit2, op, expected): assert Map._unit_propagation(unit1, unit2, op) == expected