import pytest
def test_namespace_alias():
with pytest.raises(ImportError):
from networkx import nx
def test_namespace_nesting():
from networkx import networkx