old_contents: from scoring_engine.models.kb import KB
  
  from tests.scoring_engine.unit_test import UnitTest
  
  
  class TestKB(UnitTest):
  
      def test_init_property(self):
          kb = KB(name="task_ids", value="1,2,3,4,5,6")
          assert kb.id is None
          assert kb.name == 'task_ids'
          assert kb.value == '1,2,3,4,5,6'
  
      def test_basic_kb(self):
          kb = KB(name="task_ids", value="1,2,3,4,5,6")
          self.db.save(kb)
          assert kb.id is not None
  
new_contents: from scoring_engine.models.kb import KB
  
  from tests.scoring_engine.unit_test import UnitTest
  
  
  class TestKB(UnitTest):
  
      def test_init_property(self):
          kb = KB(name="task_ids", value="1,2,3,4,5,6", round_num=100)
          assert kb.id is None
          assert kb.name == 'task_ids'
          assert kb.value == '1,2,3,4,5,6'
          assert kb.round_num == 100
  
      def test_basic_kb(self):
          kb = KB(name="task_ids", value="1,2,3,4,5,6", round_num=50)
          self.db.save(kb)
          assert kb.id is not None
  
subject: Update kb test to check for port_num