Example #1
0
def test_names():
    """
    Test basic split of module::test
    """
    a = "x::y"
    b = get_node_names(a)
    assert b == ('x', 'y')
Example #2
0
def test_words():
    """
    Test split of module::class::test
    """
    a = "boo::foo::doo"
    b = get_node_names(a)
    assert b == ('foo', 'doo')
Example #3
0
def test_name():
    """
    Test split of module::class::test
    """
    x = "x::y::z"
    y = get_node_names(x)
    assert y == ('y', 'z')
Example #4
0
 def test_name(self):
     x = "x::y::z"
     y = get_node_names(x)
     assert y == ('y', 'z')
Example #5
0
 def test_names(self):
     a = "x::y"
     b = get_node_names(a)
     assert b == ('x', 'y')
Example #6
0
 def test_words(self):
     a = "boo::foo::doo"
     b = get_node_names(a)
     assert b == ('foo', 'doo')