summaryrefslogtreecommitdiff
path: root/networkx/algorithms/community/tests
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/algorithms/community/tests')
-rw-r--r--networkx/algorithms/community/tests/test_kclique.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/networkx/algorithms/community/tests/test_kclique.py b/networkx/algorithms/community/tests/test_kclique.py
index 60be1754..8debca68 100644
--- a/networkx/algorithms/community/tests/test_kclique.py
+++ b/networkx/algorithms/community/tests/test_kclique.py
@@ -40,3 +40,7 @@ def test_zachary():
assert set(k_clique_communities(z, 4)) == zachary_k4_ground_truth
assert set(k_clique_communities(z, 5)) == zachary_k5_ground_truth
assert set(k_clique_communities(z, 6)) == zachary_k6_ground_truth
+
+@raises(nx.NetworkXError)
+def test_bad_k():
+ c = list(k_clique_communities(nx.Graph(),1))