def test_size_f(self):
        """ Test the SizeF class.

        """
        from enable.layout.geometry import SizeF

        size_f = SizeF(40.5, 20.5)
        self.assertTrue(size_f == SizeF((40.5, 20.5)))
        self.assertTrue(size_f.width == 40.5)
        self.assertTrue(size_f.height == 20.5)
    def test_box_f(self):
        """ Test the BoxF class.

        """
        from enable.layout.geometry import RectF, BoxF, PosF, SizeF

        box_f = BoxF(20.5, 71.0, 61.0, 10.5)
        self.assertTrue(box_f == BoxF((20.5, 71.0, 61.0, 10.5)))
        self.assertTrue(box_f.rect == RectF(10.5, 20.5, 60.5, 40.5))
        self.assertTrue(box_f.pos == PosF(10.5, 20.5))
        self.assertTrue(box_f.size == SizeF(60.5, 40.5))