File: test_citations.py

package info (click to toggle)
python-ihm 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,368 kB
  • sloc: python: 30,422; ansic: 5,990; sh: 24; makefile: 20
file content (20 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import utils
import os
import unittest

TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
utils.set_search_paths(TOPDIR)
import ihm.citations


class Tests(unittest.TestCase):

    def test_citations(self):
        """Test citations module"""
        pmi = ihm.citations.pmi
        self.assertEqual(pmi.pmid, '31396911')
        self.assertEqual(pmi.doi, '10.1007/978-1-4939-9608-7_15')


if __name__ == '__main__':
    unittest.main()