Ejemplo n.º 1
0
 def getSomething(self):
     op1 = mock()
     op2 = mock()
     something = Something(any())
     something.op1 = op1
     something.op2 = op2
     return (something, op1, op2)
Ejemplo n.º 2
0
    def test_doing_something_should_return_string_something_else(self):
        # setup
        something = Something(any(unicode))

        # action
        ret = something.doing_something()

        # assert
        self.assertTrue("something else", ret)
Ejemplo n.º 3
0
    def test_doing_something_should_return_string_something(self):
        # setup
        something = Something("what")

        # action
        ret = something.doing_something()

        # assert
        self.assertTrue("something", ret)