From 70acefa7af94ff97f25f200b45126c33e9350678 2013-10-17 21:09:10
From: Zachary Sailer <zachsailer@gmail.com>
Date: 2013-10-17 21:09:10
Subject: [PATCH] move notebooks api tests into notebooks/tests

---

diff --git a/IPython/html/services/tests/test_services_api.py b/IPython/html/services/notebooks/tests/test_notebooks_api.py
similarity index 94%
rename from IPython/html/services/tests/test_services_api.py
rename to IPython/html/services/notebooks/tests/test_notebooks_api.py
index ddc1e40..9eaabac 100644
--- a/IPython/html/services/tests/test_services_api.py
+++ b/IPython/html/services/notebooks/tests/test_notebooks_api.py
@@ -20,15 +20,6 @@ class APITest(NotebookTestBase):
     def notebooks_url(self):
         return self.base_url() + 'api/notebooks'
 
-    def kernels_url(self):
-        return self.base_url() + 'api/kernels'
-
-    def sessions_url(self):
-        return self.base_url() + 'api/sessions'
-
-    def contents_url(self):
-        return self.contents_url() + 'api/contents'
-
     def mknb(self, name='', path='/'):
         url = self.notebooks_url() + path
         return url, requests.post(url)
@@ -43,7 +34,7 @@ class APITest(NotebookTestBase):
         r = requests.get(url)
         self.assertEqual(r.json(), [])
 
-    def test_root_notebook_handler(self):
+    def test_notebook_root_handler(self):
         # POST a notebook and test the dict thats returned.
         url, nb = self.mknb()
         data = nb.json()
@@ -58,7 +49,10 @@ class APITest(NotebookTestBase):
         assert isinstance(r.json(), list)
         assert isinstance(r.json()[0], dict)
 
+    def test_notebook_handler(self):
         # GET with a notebook name.
+        url, nb = self.mknb()
+        data = nb.json()
         url = self.notebooks_url() + '/Untitled0.ipynb'
         r = requests.get(url)
         assert isinstance(data, dict)
diff --git a/IPython/html/services/tests/__init__.py b/IPython/html/services/tests/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/IPython/html/services/tests/__init__.py
+++ /dev/null