[llvm.py] Initial skeleton for Python LLVM bindings
[oota-llvm.git] / bindings / python / tests / test_core.py
1 from llvm.common import find_library
2 from llvm.core import MemoryBuffer
3
4 import unittest
5
6 class TestCore(unittest.TestCase):
7     def test_memory_buffer_create_from_file(self):
8         source = find_library()
9         self.assertIsNotNone(source)
10
11         mb = MemoryBuffer(filename=source)