Ejemplo n.º 1
0
 def test_can_add_and_remove_return_variable(self):
     g = Gremlin()
     v = 'ret_var'
     
     g.set_ret_variable(v).function().set_ret_variable(None)
     
     expected = 'g.function()'
     script = str(g)
     
     self.assertEquals(expected, script)
Ejemplo n.º 2
0
    def test_can_add_and_remove_return_variable(self):
        g = Gremlin()
        v = 'ret_var'

        g.set_ret_variable(v).function().set_ret_variable(None)

        expected = 'g.function()'
        script = str(g)

        self.assertEquals(expected, script)
Ejemplo n.º 3
0
 def test_can_add_return_variable(self):
     g = Gremlin()
     v = 'ret_var'
     
     g.set_ret_variable(v).function()
     
     expected = '%s = g.function()' % v
     script = str(g)
     
     self.assertEquals(expected, script)
Ejemplo n.º 4
0
    def test_can_add_return_variable(self):
        g = Gremlin()
        v = 'ret_var'

        g.set_ret_variable(v).function()

        expected = '%s = g.function()' % v
        script = str(g)

        self.assertEquals(expected, script)