Removed `Client()` class from `diaspy/__init__.py`
authorMarek Marecki <triviuss@gmail.com>
Thu, 21 Mar 2013 21:07:31 +0000 (22:07 +0100)
committerMarek Marecki <triviuss@gmail.com>
Thu, 21 Mar 2013 21:07:31 +0000 (22:07 +0100)
diaspy/__init__.py
manual/connecting_to_pod.mdown
tests.py

index f05ce40dcc64ee6a5b2fabc849614597cad785a1..d6c47eb737fb60cfe2ff7f93efa66441acd724b6 100644 (file)
@@ -2,17 +2,3 @@ import diaspy.client
 import diaspy.models
 import diaspy.conversations
 
-class Client(diaspy.client.Client):
-    """Class created for easier imports of client. 
-    Instead of:
-
-        import diaspy
-        client = diaspy.client.Client(...)
-
-    you can simply use:
-
-        import diaspy
-        client = diaspy.Client(...)
-
-    """
-    pass
index f8a0cffaf713633eb85a689f61cd88a7d3793247..93267bbf271a177b6e5bd88c4d02883dea28d3a0 100644 (file)
@@ -4,6 +4,8 @@
 First thing you have to do is to create new instace of `Client()`. 
 Then, if no errors are raised, you can `_login()` to the pod with given username and password.
 
+    import diaspy
+
     client = diaspy.Client(pod="http://pod.example.com/", username="foo", password="bar")
     client._login()
 
index 2570f29a63995ad02fc4110c6989b84181d577be..8cca3697cdc465288ae8366a53d906059181a17a 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -19,7 +19,7 @@ class ClientTests(unittest.TestCase):
         """
         This test checks initialization of Client() instance.
         """
-        client = diaspy.Client(pod=__pod__, username='testuser', password='testpassword')
+        client = diaspy.client.Client(pod=__pod__, username='testuser', password='testpassword')
         self.assertEqual(__pod__, client.pod)
         self.assertEqual('testuser', client._username)
         self.assertEqual('testpassword', client._password)