new_contents: #!/usr/bin/python3
  
  import pytest
  from camoco import Term
  from camoco import Locus
  
  @pytest.fixture
  def testTerm():
      loci = [
          # Overlapping Loci, No windows
          Locus(1,100,500), Locus(1,400,700),
          # Loci with Overlapping windows
          Locus(2,100,200,window=100), 
          Locus(2,300,500,window=100),
          # SNPs with overlapping windows
          Locus(3,100,window=50), 
          Locus(3,200,window=50),
          # Three overlapping loci, one not
          Locus(4,100,window=80), 
          Locus(4,200,window=80),
          Locus(4,300,window=80), 
          Locus(4,400,window=10) # <- one not
      ]
      return Term('test',desc='hello',loci=loci,attr1=True,attr2=False)
  
  
  def test_term_init(testTerm):
      assert testTerm.id == 'test'
      assert testTerm.desc == 'hello'
      assert testTerm['attr1'] == True
      assert testTerm['attr2'] == False
  
  def test_add_Locus(testTerm):
      new_locus = Locus(6,100)
      testTerm.add_locus(new_locus)
      assert new_locus in testTerm.loci
      testTerm.loci.remove(new_locus)
  
  def test_term_len(testTerm):
      assert len(testTerm) == len(testTerm.loci)
  
  def test_effective_loci(testTerm):
      assert len(testTerm.effective_loci()) == 5 
  
  def test_effective_loci_custom_windoe(testTerm):
      assert len(testTerm.effective_loci(window_size=150)) == 4
  
subject: Add tests for term.