def test_xliff_parser(self):
        # Parsing XLIFF content
        files = ['example.xlf','example.xml']
        for file in files:
            handler = XliffHandler(os.path.join(os.path.dirname(__file__), file))
            handler.set_language(self.resource.source_language)
            handler.parse_file(is_source=True)
            self.stringset = handler.stringset
            entities = 0
            translations = 0
            for s in self.stringset.strings:
                entities += 1
                if s.translation.strip() != '':
                    translations += 1
            self.assertEqual(entities, 7)
            self.assertEqual(translations, 7)
Sends a custom event to the socket
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/tests/lib/xliff/__init__.py/TestXliffParser.test_xliff_parser--crossover with--dataset/ETHPy150Open abourget/pyramid_socketio/pyramid_socketio/io.py/SocketIOContext.send_event