import unittest
import json

from geopandas import GeoDataFrame

class TestSeries(unittest.TestCase):

    def setUp(self):
        # Data from http://www.nyc.gov/html/dcp/download/bytes/nybb_13a.zip
        # saved as geopandas/examples/nybb_13a.zip.
        self.df = GeoDataFrame.from_file(
            '/nybb_13a/nybb.shp', vfs='zip://examples/nybb_13a.zip')

    def test_from_file_(self):
        self.assertTrue('geometry' in self.df)
        self.assertTrue(len(self.df) == 5)
    
    def test_to_json(self):
        text = self.df.to_json()
        data = json.loads(text)
        self.assertTrue(data['type'] == 'FeatureCollection')
        self.assertTrue(len(data['features']) == 5)

@@ -20,16 +20,35 @@
 ort json
+%0Aimport numpy as np
 %0A%0Afrom g
@@ -91,14 +91,17 @@
 Test
-Series
+DataFrame
 (uni
@@ -500,16 +500,190 @@
 ) == 5)%0A
+        self.assertTrue(np.alltrue(self.df%5B'BoroName'%5D.values == np.array(%5B'Staten Island',%0A                                   'Queens', 'Brooklyn', 'Manhattan', 'Bronx'%5D)))%0A
     %0A   

Add test for values of text columns in GeoDataFrame from file