docstr: RuleDescriptionParser - present - Handle linebreaks
docstr_tok: ["RuleDescriptionParser","-","present","-","Handle","linebreaks"]
code: def test_two_linebreaks_equals_newline():
      """RuleDescriptionParser - present - Handle linebreaks"""
      case = """
  description:
      This is a long description where normal linebreaks like
      this one will simply cause the sentence to continue flowing
      as normal.
  
      However a double linebreak will cause a real newline character 
      to appear in the final product.
  
  
      And double linebreaks cause double newlines.
  """
  
      data = RuleDescriptionParser.present(case)
      assert_equal(
          data,
          {
              "author": "",
              "description": (
                  "This is a long description where normal linebreaks like "
                  "this one will simply cause the sentence to continue flowing "
                  "as normal.\n"
                  "However a double linebreak will cause a real newline character "
                  "to appear in the final product."
                  "\n\n"
                  "And double linebreaks cause double newlines."
              ),
              "fields": {},
          },
      )
  
imports: from nose.tools import assert_equal
  from streamalert.shared.description import RuleDescriptionParser
label_desc: Use image node_id 7 for calling the TestRuleDescriptionParserPresent obj's underlying member method code with example usage: obj.test_two_linebreaks_equals_newline() without return types