def test_toElementWithSubscriptionIdentifier(self):
        subscription = pubsub.Subscription('test',
                                           JID('user@example.org/Home'),
                                           'pending',
                                           subscriptionIdentifier='1234')
        element = subscription.toElement()
        self.assertEqual('1234', element.getAttribute('subid'))
The subscription identifier, if set, is in the subid attribute.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_pubsub.py/SubscriptionTest.test_toElementWithSubscriptionIdentifier