@@ -0,0 +1,1589 @@
+from __future__ import absolute_import%0Afrom shapely.geometry import Point, MultiPoint, LineString%0Afrom geopandas import GeoSeries%0Afrom geopandas.tools import collect%0Afrom .util import unittest%0A%0Aclass TestTools(unittest.TestCase):%0A    def setUp(self):%0A        self.p1 = Point(0,0)%0A        self.p2 = Point(1,1)%0A        self.p3 = Point(2,2)%0A        self.mpc = MultiPoint(%5Bself.p1, self.p2, self.p3%5D)%0A%0A        self.mp1 = MultiPoint(%5Bself.p1, self.p2%5D)%0A        self.line1 = LineString(%5B(3,3), (4,4)%5D)%0A%0A    def test_collect_single(self):%0A        result = collect(self.p1)%0A        self.assert_(self.p1.equals(result))%0A%0A    def test_collect_single_force_multi(self):%0A        result = collect(self.p1, multi=True)%0A        expected = MultiPoint(%5Bself.p1%5D)%0A        self.assert_(expected.equals(result))%0A%0A    def test_collect_multi(self):%0A        result = collect(self.mp1)%0A        self.assert_(self.mp1.equals(result))%0A%0A    def test_collect_multi_force_multi(self):%0A        result = collect(self.mp1)%0A        self.assert_(self.mp1.equals(result))%0A%0A    def test_collect_list(self):%0A        result = collect(%5Bself.p1, self.p2, self.p3%5D)%0A        self.assert_(self.mpc.equals(result))%0A%0A    def test_collect_GeoSeries(self):%0A        s = GeoSeries(%5Bself.p1, self.p2, self.p3%5D)%0A        result = collect(s)%0A        self.assert_(self.mpc.equals(result))%0A%0A    def test_collect_mixed_types(self):%0A        with self.assertRaises(ValueError):%0A            collect(%5Bself.p1, self.line1%5D)%0A%0A    def test_collect_mixed_multi(self):%0A        with self.assertRaises(ValueError):%0A            collect(%5Bself.mpc, self.mp1%5D)%0A

Add tests for collect()