def test_parse_defines(self):
     datatype_descriptor = get_descriptor(
             '../tests/fixtures/b_ptr_file.xml')
     actuall = init_db.parse_datatype_specification(datatype_descriptor)
     assert_equal(actuall['defines'], ('#define TESTDIR "testdir"\n'
             '#define TESTFILE        "testdir/testfile_fp"'))
 def test_parse_type(self):
     datatype_descriptor = get_descriptor(
             '../tests/fixtures/b_ptr_file.xml')
     actuall = init_db.parse_datatype_specification(datatype_descriptor)
     assert_equal(actuall['type'], 'FILE*')
 def test_parse_include(self):
     datatype_descriptor = get_descriptor(
             '../tests/fixtures/b_ptr_file.xml')
     actuall = init_db.parse_datatype_specification(datatype_descriptor)
     assert_equal(actuall['include'], ("\n   #include <fcntl.h>\n#include"
     " <sys/stat.h> \n#include <unistd.h>\n#include <errno.h>\n\n  "))
 def test_parse_parent(self):
     datatype_descriptor = get_descriptor(
             '../tests/fixtures/b_ptr_file.xml')
     actuall = init_db.parse_datatype_specification(datatype_descriptor)
     assert_equal(actuall['parent'], 'b_ptr_void')