def test_service_can_filter_attributes(self): cols = ["title", "description"] s = NetCdfService() attributes = s.get_attributes("http://localhost:8080/thredds/dodsC/testAll/Test-New-R-Code-2_2014-02-18T11:05:13.802146.nc", cols) self.assertEqual(len(attributes.keys()), 2)