def test_mapping_returns_ctype_for_b_fname(self): init_db.TYPE_MAPPING = {'b_fname': '*char'} actuall = init_db.get_ctype('b_fname') assert_equal(actuall, '*char')
def test_mapping_returns_ctype_for_b_int_amode(self): init_db.TYPE_MAPPING = {'b_int_amode': 'int'} actuall = init_db.get_ctype('b_int_amode') assert_equal(actuall, 'int')
def test_mapping_can_handle_multiple_lookups(self): init_db.TYPE_MAPPING = {'b_fname': '*char', 'b_int_amode': 'int'} actuall = init_db.get_ctype('b_int_amode') assert_equal(actuall, 'int') actuall = init_db.get_ctype('b_fname') assert_equal(actuall, '*char')