예제 #1
0
 def test_collect_multi_force_multi(self):
     result = collect(self.mp1)
     assert self.mp1.equals(result)
예제 #2
0
 def test_collect_single(self):
     result = collect(self.p1)
     assert self.p1.equals(result)
예제 #3
0
 def test_collect_single_force_multi(self):
     result = collect(self.p1, multi=True)
     expected = MultiPoint([self.p1])
     assert expected.equals(result)
예제 #4
0
 def test_collect_mixed_types(self):
     with pytest.raises(ValueError):
         collect([self.p1, self.line1])
예제 #5
0
 def test_collect_mixed_multi(self):
     with pytest.raises(ValueError):
         collect([self.mpc, self.mp1])
예제 #6
0
 def test_collect_mixed_types(self):
     with pytest.raises(ValueError):
         collect([self.p1, self.line1])
예제 #7
0
 def test_collect_mixed_types(self):
     with self.assertRaises(ValueError):
         collect([self.p1, self.line1])
예제 #8
0
 def test_collect_single_force_multi(self):
     result = collect(self.p1, multi=True)
     expected = MultiPoint([self.p1])
     assert expected.equals(result)
예제 #9
0
 def test_collect_multi_force_multi(self):
     result = collect(self.mp1)
     assert self.mp1.equals(result)
예제 #10
0
 def test_collect_mixed_multi(self):
     with self.assertRaises(ValueError):
         collect([self.mpc, self.mp1])
예제 #11
0
 def test_collect_single(self):
     result = collect(self.p1)
     assert self.p1.equals(result)
예제 #12
0
 def test_collect_mixed_types(self):
     with self.assertRaises(ValueError):
         collect([self.p1, self.line1])
예제 #13
0
 def test_collect_multi(self):
     result = collect(self.mp1)
     self.assert_(self.mp1.equals(result))
예제 #14
0
 def test_collect_mixed_multi(self):
     with self.assertRaises(ValueError):
         collect([self.mpc, self.mp1])
예제 #15
0
 def test_collect_list(self):
     result = collect([self.p1, self.p2, self.p3])
     assert self.mpc.equals(result)
예제 #16
0
 def test_collect_list(self):
     result = collect([self.p1, self.p2, self.p3])
     assert self.mpc.equals(result)
예제 #17
0
 def test_collect_GeoSeries(self):
     s = GeoSeries([self.p1, self.p2, self.p3])
     result = collect(s)
     assert self.mpc.equals(result)
예제 #18
0
 def test_collect_GeoSeries(self):
     s = GeoSeries([self.p1, self.p2, self.p3])
     result = collect(s)
     assert self.mpc.equals(result)
예제 #19
0
 def test_collect_mixed_multi(self):
     with pytest.raises(ValueError):
         collect([self.mpc, self.mp1])
예제 #20
0
 def test_collect_multi(self):
     result = collect(self.mp1)
     self.assert_(self.mp1.equals(result))