Exemple #1
0
 def test_strip(self):
     """test Argument.__strip__()"""
     node = Argument(wraptext("foobar"))
     node2 = Argument(wraptext("foo"), wraptext("bar"))
     for a in (True, False):
         for b in (True, False):
             self.assertIs(None, node.__strip__(a, b))
             self.assertEqual("bar", node2.__strip__(a, b))
 def test_strip(self):
     """test Argument.__strip__()"""
     node = Argument(wraptext("foobar"))
     node2 = Argument(wraptext("foo"), wraptext("bar"))
     for a in (True, False):
         for b in (True, False):
             self.assertIs(None, node.__strip__(a, b))
             self.assertEqual("bar", node2.__strip__(a, b))
Exemple #3
0
 def test_strip(self):
     """test Argument.__strip__()"""
     node1 = Argument(wraptext("foobar"))
     node2 = Argument(wraptext("foo"), wraptext("bar"))
     self.assertIs(None, node1.__strip__())
     self.assertEqual("bar", node2.__strip__())
 def test_strip(self):
     """test Argument.__strip__()"""
     node1 = Argument(wraptext("foobar"))
     node2 = Argument(wraptext("foo"), wraptext("bar"))
     self.assertIs(None, node1.__strip__())
     self.assertEqual("bar", node2.__strip__())