Beispiel #1
0
 def test_to_str_no_defaults(self):
     node = TemplateResponseNode(index=2)
     self.assertEquals("RESPONSE index=2", node.to_string())
Beispiel #2
0
 def test_to_str_defaults(self):
     node = TemplateResponseNode()
     self.assertEquals("RESPONSE", node.to_string())
Beispiel #3
0
 def test_to_str_no_defaults(self):
     node = TemplateResponseNode(index=2)
     self.assertEquals("RESPONSE index=2", node.to_string())
Beispiel #4
0
 def test_to_str_no_defaults(self):
     node = TemplateResponseNode(index=2)
     self.assertEqual("[RESPONSE[WORD]2]", node.to_string())
Beispiel #5
0
 def test_to_str_defaults(self):
     node = TemplateResponseNode()
     self.assertEquals("RESPONSE", node.to_string())