github.com/sercand/please@v13.4.0+incompatible/test/cc_rules/gcc/shared_object_test.py (about) 1 """Unit test to confirm we can load .so Python extensions.""" 2 3 import unittest 4 5 from test.cc_rules.gcc import so_test 6 7 8 class SharedObjectTest(unittest.TestCase): 9 10 def test_file1_contents(self): 11 contents = so_test.get_embedded_file_1() 12 self.assertEqual('testing message 1\n', contents) 13 14 def test_file3_contents(self): 15 contents = so_test.get_embedded_file_3() 16 self.assertEqual('testing message 3\n', contents) 17 18 19 if __name__ == '__main__': 20 unittest.main()