Example #1
0
    def testBindLibrary(self):
        """
		This method tests :meth:`foundations.library.Library.bindLibrary` method.
		"""

        for name, path in LIBRARIES.iteritems():
            library = Library(path, bindLibrary=False)
            library.functions = LIBRARIES_FUNCTIONS[name]
            library.bindLibrary()
            for function in LIBRARIES_FUNCTIONS[name]:
                self.assertTrue(hasattr(library, function.name))
Example #2
0
    def testBindLibrary(self):
        """
		This method tests :meth:`foundations.library.Library.bindLibrary` method.
		"""

        for name, path in LIBRARIES.iteritems():
            library = Library(path, bindLibrary=False)
            library.functions = LIBRARIES_FUNCTIONS[name]
            library.bindLibrary()
            for function in LIBRARIES_FUNCTIONS[name]:
                self.assertTrue(hasattr(library, function.name))