def test_run_link(start_link, count=1000):
 if isinstance(start_link, basestring):
  start_link = int(start_link, 36)
 links = Link._byID(range((start_link - count), start_link), data=True, return_dict=False)
 uploader = LinkUploader(g.CLOUDSEARCH_DOC_API, things=links)
 return uploader.inject()

def test_run_link ( start_link , count = 1000 ) : if isinstance ( start_link , basestring ) : start_link = int ( start_link , 36 ) links = Link . _byID ( range ( ( start_link - count ) , start_link ) , data = True , return_dict = False ) uploader = LinkUploader ( g . CLOUDSEARCH_DOC_API , things = links ) return uploader . inject ( )
inject count number of links .