class_docstr: Tests for ThreatIntel
class_docstr_tok: ["Tests","for","ThreatIntel"]
docstr: ThreatIntel - Segment
docstr_tok: ["ThreatIntel","-","Segment"]
code: def test_segment(self):
      """ThreatIntel - Segment"""
      expected_result = [set(range(100)), set(range(100, 120))]
  
      result = list(ThreatIntel._segment(list(range(120))))
      assert_equal(result, expected_result)
  
imports: from botocore.exceptions import ClientError, ParamValidationError
  from mock import Mock, patch
  from netaddr import IPNetwork
  from nose.tools import assert_equal
  from streamalert.rules_engine.threat_intel import ThreatIntel
label_desc: Use image node_id 13 for calling the TestThreatIntel obj's underlying member method code with example usage: obj.test_segment() without return types