def test_bbox(self):
        set = PolygonSet()
        set.append(p1)
        set.append(p2)
        bb = np.array(((1.0, 2.0), (35.0, 40.0)), dtype=np.float)

        assert np.array_equal(set.bounding_box, bb)
 def test_datatype(self):
     set = PolygonSet(dtype=np.float32)
     set.append(p1)
     set.append(p2)
     print set[0]
     print set[0].dtype
     assert set[0].dtype == np.float32
 def test_append(self):
     # this passes as long as there is no error!
     set = PolygonSet()
     set.append(p1)
     set.append(p2)