def test_property_types(self):
    sys_dic = SystemDictionary(all_fstdata(), entries(), connections, chardef.DATA, unknowns.DATA)
    entry = sys_dic.lookup('すもも'.encode('utf8'))[0]
    self.assertTrue((type(entry[1]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[2]) is int))
    self.assertTrue((type(entry[3]) is int))
    self.assertTrue((type(entry[4]) is int))
    entry_extra = sys_dic.lookup_extra(entry[0])
    self.assertTrue((type(entry_extra[0]) is str))
    self.assertTrue((type(entry_extra[1]) is str))
    self.assertTrue((type(entry_extra[2]) is str))
    self.assertTrue((type(entry_extra[3]) is str))
    self.assertTrue((type(entry_extra[4]) is str))
    self.assertTrue((type(entry_extra[5]) is str))
    entry = sys_dic.unknowns.get(u'HIRAGANA')[0]
    self.assertTrue((type(entry[3]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[1]) is int))
    self.assertTrue((type(entry[2]) is int))
    mmap_dic = MMapSystemDictionary(all_fstdata(), mmap_entries(), connections, chardef.DATA, unknowns.DATA)
    entry = mmap_dic.lookup(u'すもも'.encode('utf8'))[0]
    self.assertTrue((type(entry[1]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[2]) is int))
    self.assertTrue((type(entry[3]) is int))
    self.assertTrue((type(entry[4]) is int))
    entry_extra = mmap_dic.lookup_extra(entry[0])
    self.assertTrue((type(entry_extra[0]) is str))
    self.assertTrue((type(entry_extra[1]) is str))
    self.assertTrue((type(entry_extra[2]) is str))
    self.assertTrue((type(entry_extra[3]) is str))
    self.assertTrue((type(entry_extra[4]) is str))
    self.assertTrue((type(entry_extra[5]) is str))
    user_dic = UserDictionary(user_dict=os.path.join(parent_dir, 'tests/user_ipadic.csv'), enc='utf8', type='ipadic', connections=connections)
    entry = user_dic.lookup('東京スカイツリー'.encode('utf8'))[0]
    self.assertTrue((type(entry[1]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[2]) is int))
    self.assertTrue((type(entry[3]) is int))
    self.assertTrue((type(entry[4]) is int))
def test_property_types(self):
    sys_dic = SystemDictionary(all_fstdata(), entries(), connections, chardef.DATA, unknowns.DATA)
    entry = sys_dic.lookup('すもも'.encode('utf8'))[0]
    self.assertTrue((type(entry[1]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[2]) is int))
    self.assertTrue((type(entry[3]) is int))
    self.assertTrue((type(entry[4]) is int))
    entry_extra = sys_dic.lookup_extra(entry[0])
    self.assertTrue((type(entry_extra[0]) is str))
    self.assertTrue((type(entry_extra[1]) is str))
    self.assertTrue((type(entry_extra[2]) is str))
    self.assertTrue((type(entry_extra[3]) is str))
    self.assertTrue((type(entry_extra[4]) is str))
    self.assertTrue((type(entry_extra[5]) is str))
    entry = sys_dic.unknowns.get(u'HIRAGANA')[0]
    self.assertTrue((type(entry[3]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[1]) is int))
    self.assertTrue((type(entry[2]) is int))
    mmap_dic = MMapSystemDictionary(all_fstdata(), mmap_entries(), connections, chardef.DATA, unknowns.DATA)
    entry = mmap_dic.lookup(u'すもも'.encode('utf8'))[0]
    self.assertTrue((type(entry[1]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[2]) is int))
    self.assertTrue((type(entry[3]) is int))
    self.assertTrue((type(entry[4]) is int))
    entry_extra = mmap_dic.lookup_extra(entry[0])
    self.assertTrue((type(entry_extra[0]) is str))
    self.assertTrue((type(entry_extra[1]) is str))
    self.assertTrue((type(entry_extra[2]) is str))
    self.assertTrue((type(entry_extra[3]) is str))
    self.assertTrue((type(entry_extra[4]) is str))
    self.assertTrue((type(entry_extra[5]) is str))
    user_dic = UserDictionary(user_dict=os.path.join(parent_dir, 'tests/user_ipadic.csv'), enc='utf8', type='ipadic', connections=connections)
    entry = user_dic.lookup('東京スカイツリー'.encode('utf8'))[0]
    self.assertTrue((type(entry[1]) is str))
    self.assertTrue((type(entry[0]) is int))
    self.assertTrue((type(entry[2]) is int))
    self.assertTrue((type(entry[3]) is int))
    self.assertTrue((type(entry[4]) is int))