def test_sendIAmAlive(self):
        self.tr.clear()
        init_alive_count = self.proto.alive_count
        self.factory.alive_loop.clock.advance(self.factory.IAMALIVE_INTERVAL)
        received_element = etree.fromstring(self.tr.value()[4:])
        self.assertEqual("iamalive", received_element.attrib['role'])
        self.assertEqual(DUMMY_SERVICE_IVORN.decode(), received_element.find('Origin').text)
        self.assertEqual(init_alive_count - self.proto.alive_count, 1)
dataset/ETHPy150Open jdswinbank/Comet/comet/protocol/test/test_voeventbroadcaster.py/VOEventBroadcasterTestCase.test_sendIAmAlive/swapped operands of `-`