docstr: StreamQuery - QueryPackConfiguration - generate_query
docstr_tok: ["StreamQuery","-","QueryPackConfiguration","-","generate_query"]
code: def test_query_construction():
      """StreamQuery - QueryPackConfiguration - generate_query"""
      config = QueryPackConfiguration(
          name="helloworld",
          query="SELECT * FROM helloworld WHERE dt = '{date}'",
          params=["date"],
          description="yoo hoo and a bottle of rum",
          tags=["tag1", "tag2"],
      )
  
      assert_equals(
          config.generate_query(date="2000-01-01"),
          "SELECT * FROM helloworld WHERE dt = '2000-01-01'",
      )
  
imports: from nose.tools import assert_equals, assert_true
  from streamalert.scheduled_queries.query_packs.configuration import QueryPackConfiguration, QueryPackRepository
label_desc: Use image node_id 2 for calling the TestConfiguration obj's underlying member method code with example usage: obj.test_query_construction() without return types