'Tests that big collections are detected and raise an exception.'

def test_element_count_validation(self):

    while True:
        try:
            TestListModel.create(text_list=[str(uuid4()) for i in range(65535)])
            break
        except WriteTimeout:
            (ex_type, ex, tb) = sys.exc_info()
            log.warn('{0}:    {1}    Backtrace:    {2}'.format(ex_type.__name__, ex, traceback.extract_tb(tb)))
            del tb
    self.assertRaises(ValidationError, TestListModel.create, **{'text_list': [str(uuid4()) for _ in range(65536)]})
