old_contents: from unittest import TestCase, main
  from l_bp import *
  
  class Test_l_bp(TestCase):
      def test_find_all(self):
          test_string = 'ABBA'
          sub_string = 'A'
  
          result = [ x for x in find_all(test_string, sub_string) ]
          self.assertEqual(result, [0,3])
  
  if __name__ == "__main__":
      main()
  
  
new_contents: from unittest import TestCase, main
  from l_bp import *
  
  class Test_l_bp(TestCase):
      def test_find_all(self):
          test_string = 'ABBA'
          sub_string = 'A'
  
          result = [ x for x in find_all(test_string, sub_string) ]
          self.assertEqual(result, [0,3])
  
      def test_to_map(self):
          string = 'NS=3;AF=0.5;DB'
          expected = { 'NS' : '3', 'AF' : '0.5', 'DB' : None }
          result = to_map(string)
          self.assertEqual(result, expected)
  
  if __name__ == "__main__":
      main()
  
  
subject: add test for to_map