Similar to this question. However the accepted solution doesn't work for me when using ddt.
For example:
def numbers_to_words(num):
    if(num == 1): return 'One'
    if(num == 2): return 'Two'
    if(num == 3): return 'Three'
    raise Error
@ddt
class TestNumbersToWords(unittest.TestCase):
    @unpack
    @data((1, 'One'), (2, 'Two'), (3, 'Three'))
    def test_should_return_correct_word(self, input, expected):
        self.assertEqual(expected, numbers_to_words(input))
If I run this in terminal it doesn't work
python3 testSuite.py TestNumbersToWords.test_should_return_correct_word
 
     
    