class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - Get Rules, Rule With Datatypes
docstr_tok: ["Rule","-","Get","Rules",",","Rule","With","Datatypes"]
code: def test_get_rules_with_datatypes(self):
      """Rule - Get Rules, Rule With Datatypes"""
      # Add a rule (this one will have no datatypes)
      self._create_rule_helper("no_datatypes")
  
      # Add another rule with datatypes
      self._create_rule_helper(
          "with_datatypes", {"datatypes": ["sourceAddress"]}
      )
  
      result = rule.Rule.rules_with_datatypes()
      # Make sure both rules are there
      assert_equal(len(rule.Rule.rule_names()), 2)
      # Check to see if the one with datatypes is returned
      assert_equal(len(result), 1)
      assert_equal(result[0].name, "with_datatypes")
  
imports: import hashlib
  from mock import patch
  from nose.tools import assert_equal, assert_true, raises
  from streamalert.shared import rule, rule_table
label_desc: Use image node_id 21 for calling the TestRule obj's underlying member method code with example usage: obj.test_get_rules_with_datatypes() without return types