text: #  Copyright (c) 2013 - 2019 Adam Caudill and Contributors.
  #  This file is part of YAWAST which is released under the MIT license.
  #  See the LICENSE file or go to https://yawast.org/license/ for full license details.
  
  import os
  from unittest import TestCase
  
  from yawast.scanner.plugins.dns import srv
  
  
  class TestFindSrvRecords(TestCase):
      def test_find_srv_records(self):
          target_dir = os.path.dirname(os.path.realpath("__file__"))
          path = os.path.join(target_dir, "tests/test_data/srv.txt")
  
          recs = srv.find_srv_records("adamcaudill.com", path)
  
          self.assertTrue(len(recs) > 0)
  