Ejemplo n.º 1
0
 def testAppend(self):
     """MultiValue: Append of item converts it to required type..."""
     multival = MultiValue(IS, [1, 5, 10])
     multival.append('5')
     self.assertTrue(isinstance(multival[-1], IS))
     self.assertEqual(multival[-1], 5,
                      "Item set by append is not correct value")
Ejemplo n.º 2
0
 def testAppend(self):
     """MultiValue: Append of item converts it to required type..."""
     multival = MultiValue(IS, [1, 5, 10])
     multival.append('5')
     self.assertTrue(isinstance(multival[-1], IS))
     self.assertEqual(multival[-1], 5,
                      "Item set by append is not correct value")
Ejemplo n.º 3
0
 def testAppend(self):
     """MultiValue: Append of item converts it to required type..."""
     multival = MultiValue(IS, [1, 5, 10])
     multival.append('5')
     assert isinstance(multival[-1], IS)
     assert 5 == multival[-1]