Ejemplo n.º 1
0
    def test_argprepender(self):
        class Wrapped(object):
            def callme(self, project, client, execution, param1):
                return (project, client, execution, param1)

        execution = ArgPrepender(Wrapped(), "aproject", "aclient",
                                 "anexecution")
        self.assertEqual(execution.callme("woo"),
                         ("aproject", "aclient", "anexecution", "woo"))
Ejemplo n.º 2
0
	def test_argprepender(self) :

		class Wrapped(object) :
			def callme(self, project, client, execution, param1) :
					return (project, client, execution, param1)

		execution = ArgPrepender(Wrapped(),
			"aproject", "aclient", "anexecution")
		self.assertEqual(
				execution.callme("woo"),
				("aproject", "aclient", "anexecution","woo"))