From 48f2b5ed0ed6ab2395b8e7b36298fe2c7b449af9 Mon Sep 17 00:00:00 2001
From: Holger <holger@nahrstaedt.de>
Date: Sun, 8 Jul 2018 18:59:45 +0200
Subject: [PATCH] Fix unit test and improve documentation

---
 docs/beem.snapshot.rst      |  7 +++++++
 docs/installation.rst       | 21 +++++++++++++++++++++
 tests/beem/test_nodelist.py |  4 ++--
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/docs/beem.snapshot.rst b/docs/beem.snapshot.rst
index e69de29b..b7ae8981 100644
--- a/docs/beem.snapshot.rst
+++ b/docs/beem.snapshot.rst
@@ -0,0 +1,7 @@
+beem\.snapshot
+==============
+
+.. automodule:: beem.snapshot
+    :members:
+    :undoc-members:
+    :show-inheritance:
diff --git a/docs/installation.rst b/docs/installation.rst
index 6570808f..6116b103 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -38,6 +38,14 @@ Install beem by pip::
 
     pip install -U beem
 
+Sometimes this does not work. Please try::
+
+    pip3 install -U beem
+
+or::
+
+    python -m pip install beem
+
 Manual installation
 -------------------
     
@@ -69,3 +77,16 @@ Once the conda-forge channel has been enabled, beem can be installed with::
 Signing and Verify can be fasten (200 %) by installing cryptography::
 
     conda install cryptography
+
+Enable Logging
+--------------
+
+Add the following for enabling logging in your python script::
+
+    import logging
+    log = logging.getLogger(__name__)
+    logging.basicConfig(level=logging.INFO)
+
+When you want to see only critical errors, replace the last line by::
+
+    logging.basicConfig(level=logging.CRITICAL)
diff --git a/tests/beem/test_nodelist.py b/tests/beem/test_nodelist.py
index c318f19a..89bdd344 100644
--- a/tests/beem/test_nodelist.py
+++ b/tests/beem/test_nodelist.py
@@ -23,8 +23,8 @@ class Testcases(unittest.TestCase):
 
     def test_get_nodes(self):
         nodelist = NodeList()
-        all_nodes = nodelist.get_nodes(normal=True, appbase=True, dev=True, testnet=True)
-        self.assertEqual(len(nodelist), len(all_nodes))
+        all_nodes = nodelist.get_nodes(normal=True, appbase=True, dev=True, testnet=True, testnetdev=True)
+        self.assertEqual(len(nodelist) - 2, len(all_nodes))
         https_nodes = nodelist.get_nodes(wss=False)
         self.assertEqual(https_nodes[0][:5], 'https')
 
-- 
GitLab