Example #1
0
    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)'
Example #2
0
 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)'
Example #3
0
 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)'
Example #4
0
 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)'
Example #5
0
 def test_empty(self):
     """Testing Node object with None for value."""
     node = word_neo4j.Node(None)
     assert node.word == '()'
Example #6
0
 def test_default(self):
     """Testing Node object creation with no kwargs."""
     node = word_neo4j.Node('FooBar')
     assert node.word == '(_foo_bar:FooBar)'