'Verify headers correctly detects mismatch of number of
headers and data.'

def test_set_headers_with_incorrect_dimension(self):

    data.append(self.john)
    def set_header_callable():
        data.headers = ['first_name']
    self.assertRaises(tablib.InvalidDimensions, set_header_callable)
