def test_toElementMaxStanzas(self):
        history = muc.HistoryOptions(maxStanzas=10)

        element = history.toElement()

        self.assertEqual(u'10', element.getAttribute('maxstanzas'))
If C{maxStanzas} is set, the element has the attribute C{'maxstanzas'}.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_muc.py/HistoryOptionsTest.test_toElementMaxStanzas