Exemplo n.º 1
0
 def test_update_empty(self):
     bounds1 = Bounds()
     bounds2 = Bounds(3, 5)
     self.assertTrue(bounds1.update(bounds2) is bounds1)
     self.assertEquals(len(bounds1), 2)
     self.assertEquals(list(bounds1), [3, 4])
Exemplo n.º 2
0
 def test_update_empty(self):
     bounds1 = Bounds()
     bounds2 = Bounds(3, 5)
     self.assertTrue(bounds1.update(bounds2) is bounds1)
     self.assertEquals(len(bounds1), 2)
     self.assertEquals(list(bounds1), [3, 4])
Exemplo n.º 3
0
 def test_update(self):
     bounds1 = Bounds(1, 3)
     bounds2 = Bounds(3, 5)
     self.assertTrue(bounds1.update(bounds2) is bounds1)
     self.assertEquals(len(bounds1), 4)
     self.assertEquals(list(bounds1), [1, 2, 3, 4])
Exemplo n.º 4
0
 def test_update(self):
     bounds1 = Bounds(1, 3)
     bounds2 = Bounds(3, 5)
     self.assertTrue(bounds1.update(bounds2) is bounds1)
     self.assertEquals(len(bounds1), 4)
     self.assertEquals(list(bounds1), [1, 2, 3, 4])