예제 #1
0
 def testError(self):
     """Test marking a stanza as an error."""
     stanza = StanzaBase()
     stanza['type'] = 'get'
     stanza.error()
     self.assertTrue(stanza['type'] == 'error',
         "Stanza type is not 'error' after calling error()")
예제 #2
0
 def testError(self):
     """Test marking a stanza as an error."""
     stanza = StanzaBase()
     stanza['type'] = 'get'
     stanza.error()
     self.assertTrue(stanza['type'] == 'error',
                     "Stanza type is not 'error' after calling error()")
예제 #3
0
 def testError(self):
     """Test marking a stanza as an error."""
     stanza = StanzaBase()
     stanza["type"] = "get"
     stanza.error()
     self.failUnless(stanza["type"] == "error", "Stanza type is not 'error' after calling error()")