this repo has no description
1#!/usr/bin/env python3
2# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
3import importlib
4import unittest
5
6
7class ImportlibTests(unittest.TestCase):
8 def test_importlib_can_import(self):
9 warnings_module = importlib.import_module("warnings")
10 self.assertEqual(warnings_module.__name__, "warnings")
11
12 def test_import_machinery(self):
13 import importlib.machinery as machinery_module
14
15 self.assertEqual(machinery_module.__name__, "importlib.machinery")
16
17
18if __name__ == "__main__":
19 unittest.main()