def test_provided_variable_name_explicitly_no_variable(self): """Testing Node object With provided variable name and explicit variable=False. """ node = word_neo4j.Node('FooBar', variable_name='baz', variable=False) assert node.word == '(:FooBar)'
def test_provided_variable_name(self): """Testing Node object with provided variable name.""" node = word_neo4j.Node('FooBar', variable_name='baz') assert node.word == '(baz:FooBar)'
def test_explicitly_add_variable(self): """Testing Node object with variable=True'.""" node = word_neo4j.Node('FooBar', variable=True) assert node.word == '(_foo_bar:FooBar)'
def test_explicitly_no_variable(self): """Testing Node object creation with explicit variable=False.""" node = word_neo4j.Node('FooBar', variable=False) assert node.word == '(:FooBar)'
def test_empty(self): """Testing Node object with None for value.""" node = word_neo4j.Node(None) assert node.word == '()'
def test_default(self): """Testing Node object creation with no kwargs.""" node = word_neo4j.Node('FooBar') assert node.word == '(_foo_bar:FooBar)'