File: test_acquisition.py

package info (click to toggle)
python-bioregistry 0.11.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,244 kB
  • sloc: python: 16,082; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding: utf-8 -*-

"""Tests for downloading external data."""

import unittest

from bioregistry.external.obofoundry import get_obofoundry_example


class TestUtils(unittest.TestCase):
    """Test utilities."""

    def test_obolibrary_example(self):
        """Test looking up an example from the OBO Foundry PURL service configuration."""
        self.assertEqual("0011124", get_obofoundry_example("pcl"))