'If things is a generator, a TypeError is raised.'

def test_generatorTypeError(self):

    def sample():
        for i in range(2):
            (yield i)
    error = self.assertRaises(TypeError, util._listToPhrase, sample, 'and')
    self.assertEqual(str(error), 'Things    must    be    a    list    or    a    tuple')
