From 7bb7b946667723aa0121551aaf4cb1ac6509c797 Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Mon, 3 Dec 2018 17:14:43 -0800 Subject: Added test for multimethod inheritance --- lib/spack/spack/test/multimethod.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/test/multimethod.py b/lib/spack/spack/test/multimethod.py index de694c1498..2780c57fc5 100644 --- a/lib/spack/spack/test/multimethod.py +++ b/lib/spack/spack/test/multimethod.py @@ -107,3 +107,7 @@ def test_multimethod_with_base_class(mock_packages): pkg = spack.repo.get('multimethod@1') assert pkg.base_method() == "base_method" + +def test_multimethod_inheritance(mock_packages): + pkg = spack.repo.get('multimethod-inheritor@1.0') + assert pkg.no_version_2() == 1 -- cgit v1.2.3-60-g2f50