File: test_includes.py

package info (click to toggle)
pyzmq 27.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,984 kB
  • sloc: python: 15,189; ansic: 285; makefile: 169; sh: 85
file content (33 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.


from unittest import TestCase

import zmq


class TestIncludes(TestCase):
    def test_get_includes(self):
        from os.path import basename

        includes = zmq.get_includes()
        assert isinstance(includes, list)
        assert len(includes) >= 2
        parent = includes[0]
        assert isinstance(parent, str)
        utilsdir = includes[1]
        assert isinstance(utilsdir, str)
        utils = basename(utilsdir)
        assert utils == "utils"

    def test_get_library_dirs(self):
        from os.path import basename

        libdirs = zmq.get_library_dirs()
        assert isinstance(libdirs, list)
        assert len(libdirs) == 1
        parent = libdirs[0]
        assert isinstance(parent, str)
        libdir = basename(parent)
        assert libdir == "zmq"