test_virtualenv_library.py
Go to the documentation of this file.
1 # Software License Agreement (GPL)
2 #
3 # \file test_virtualenv_library.py
4 # \authors Paul Bovbel <pbovbel@locusrobotics.com>
5 # \copyright Copyright (c) (2017,), Locus Robotics, All rights reserved.
6 #
7 # This program is free software: you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as
9 # published by the Free Software Foundation, either version 2 of the
10 # License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 import importlib
20 import unittest
21 
22 from packaging import version
23 
24 
25 class TestVirtualenv(unittest.TestCase):
26  def test_import(self):
27  requests = importlib.import_module("requests")
28  self.assertLessEqual(version.parse(requests.__version__), version.parse("2.21"))
29 
30  _ = importlib.import_module("packaging")


test_catkin_virtualenv_inherited
Author(s): Paul Bovbel
autogenerated on Thu Apr 1 2021 02:36:28