
from nose.tools import assert_equal

import networkx as nx

def test_smetric():
    g = nx.Graph()
    g.add_edge(1,2)
    g.add_edge(2,3)
    g.add_edge(2,4)
    g.add_edge(1,4)
    sm = nx.s_metric(g,normalized=False)
    assert_equal(sm, 19.0)
#    smNorm = nx.s_metric(g,normalized=True)
#    assert_equal(smNorm, 0.95)


@@ -29,16 +29,23 @@
 rt_equal
+,raises
 %0A%0Aimport
@@ -326,8 +326,110 @@
  0.95)%0A%0A
+@raises(nx.NetworkXError)%0Adef test_normalized():%0A        sm = nx.s_metric(nx.Graph(),normalized=True)%0A

Add smetric normalization test