def test_is_subset(self):
     """Test for is_subset function."""
     assert ImpactFunctionMetadata.is_subset('a', ['a'])
     assert ImpactFunctionMetadata.is_subset('a', ['a', 'b'])
     assert ImpactFunctionMetadata.is_subset(['a'], ['a', 'b'])
     assert ImpactFunctionMetadata.is_subset('a', 'a')
     assert not ImpactFunctionMetadata.is_subset('a', 'ab')
     assert not ImpactFunctionMetadata.is_subset(['a', 'c'], ['a', 'b'])
 def test_init(self):
     """Test init base class."""
     ifm = ImpactFunctionMetadata()
     with self.assertRaises(NotImplementedError):
         ifm.as_dict()
         ifm.allowed_data_types('flood')