'Test invoking start_new_thread() with a non-dict value for "kwargs".
Expect TypeError with a meaningful error message to be raised.'

def test_kwargs_not_dict(self):

    with self.assertRaises(TypeError) as cm:
        _thread.start_new_thread(mock.Mock(), tuple(), kwargs=[])
    self.assertEqual(cm.exception.args[0], '3rd    arg    must    be    a    dict')
