Пример #1
0
 def test_size_empty_set_empty(self):
     b = Box([x, y, z])
     self.assertEqual(b.size(), 3)
     self.assertFalse(b.empty())
     b.set_empty()
     self.assertTrue(b.empty())
Пример #2
0
 def test_copy_constructor(self):
     b1 = Box([x, y, z])
     b2 = Box([x, y, z])
     self.assertEqual(b1, b2)
     b2.set_empty()
     self.assertNotEqual(b1, b2)