def test_invalid_distribution(self):
    'Test for an invalid distribution.'
    msg = 'The distribution requested'
    with self.assertRaisesRegex(AttributeError, msg):
        Plugin(distribution='elephant')
Test for an invalid distribution.
def test_invalid_distribution(self):
    
    msg = 'The distribution requested'
    with self.assertRaisesRegex(AttributeError, msg):
        Plugin(distribution='elephant')