class_docstr: Basic tests for the wrapped DeBruijnGraph class.
docstr: Basic example.
docstr_tok: ["Basic","example","."]
code: def test_basics(self):
      """Basic example."""
      ref_str = "GATTACA"
      read_str = "GATGACA"
      read = test_utils.make_read(
          read_str,
          chrom="chr20",
          start=1,
          cigar=[(len(read_str), "M")],
          quals=[30] * len(read_str),
          name="read",
      )
  
      self.assertEqual(self.single_k_dbg_options(3).min_k, 3)
      # Use two reads so read path doesn't get pruned.
      dbg = debruijn_graph.build(
          ref_str, [read, read], self.single_k_dbg_options(3)
      )
  
      self.assertItemsEqual(
          [ref_str, read_str], dbg.candidate_haplotypes()
      )
  
      self.assertGraphEqual(
          """\
            digraph G {
            0[label=GAT];
            1[label=ATT];
            2[label=TTA];
            3[label=TAC];
            4[label=ACA];
            5[label=ATG];
            6[label=TGA];
            7[label=GAC];
            0->1 [label=1 color=red];
            1->2 [label=1 color=red];
            2->3 [label=1 color=red];
            3->4 [label=1 color=red];
            0->5 [label=2];
            5->6 [label=2];
            6->7 [label=2];
            7->4 [label=2];
            }
            """,
          dbg,
      )
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from third_party.nucleus.io import fasta
  from third_party.nucleus.io import sam
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
  from deepvariant import testdata
  from deepvariant.protos import realigner_pb2
  from deepvariant.realigner.python import debruijn_graph
label_desc: Use image node_id 4 for calling the DeBruijnGraphWrapTest obj's underlying member method code with example usage: obj.test_basics() without return types