def test_in_place(self):
        G = nx.DiGraph()
        G.add_edge(0, 1, weight=1)
        G.add_edge(0, 2, weight=1)
        nx.stochastic_graph(G, copy=False)
        assert_equal(sorted(G.edges(data=True)),
                     [(0, 1, {'weight': 0.5}), (0, 2, {'weight': 0.5})])
Tests that a SaltCloudSystemExit is raised when the template_name and
dataset/ETHPy150Open networkx/networkx/networkx/generators/tests/test_stochastic.py/TestStochasticGraph.test_in_place--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/cloud/clouds/opennebula_test.py/OpenNebulaTestCase.test_template_clone_no_template_name_or_template_id