def validate_paths(self, expected, test):
        """
        Assert the lengths of the expected list and the test list are the same
        Also assert that every member of the expected list is present in the
            test list.

        """
        # Check that test is a list
        self.assertTrue(isinstance(test, list))
        # Check length before converting to sets
        self.assertEqual(len(expected), len(test))
        # Convert lists to sets and verify equality
        self.assertEqual(set(expected), set(test))

        Assert the lengths of the expected list and the test list are the same
        Also assert that every member of the expected list is present in the
            test list.

        
tests/test_paths.py