Repository: planetlabs/planet-client-python (python)

Issue:
Unable to get single mosaic metadata
The `planet mosaic` command appears to be broken in 0.0.3:

```
$ planet mosaic color_balance_mosaic
Error: MissingResource: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.</p>
```

`color_balance_mosaic` does appear when `planet mosaics` is run.

Pull request description:
remove trailing slash on mosaic url
closes #78

Patch:
diff --git a/planet/api/client.py b/planet/api/client.py
index 81d21ca..2b1cc0b 100644
--- a/planet/api/client.py
+++ b/planet/api/client.py
@@ -184,7 +184,7 @@ class Client(object):
         :param name:
             Mosaic name as returned by `list_mosaics`.
         """
-        return self._get('mosaics/%s/' % name).get_body()
+        return self._get('mosaics/%s' % name).get_body()
 
     def get_mosaic_quads(self, name, intersects=None, count=50):
         """


Test patch:
diff --git a/tests/test_mosaics.py b/tests/test_mosaics.py
index 04882a4..84b4b30 100644
--- a/tests/test_mosaics.py
+++ b/tests/test_mosaics.py
@@ -43,7 +43,7 @@ def test_get_mosaic():
 
         text = read_fixture('get-mosaic.json')
         uri = os.path.join(client.base_url,
-                           'mosaics/%s/' % mosaic_name)
+                           'mosaics/%s' % mosaic_name)
         m.get(uri, text=text, status_code=200)
 
         r = client.get_mosaic(mosaic_name)