Hi,

I'm making some regression tests for Django, and there's a problem I
can't get around. Here's the code:

class SomeTest(TestCase):
    def test_bla(self, an_argument):
        ....

    def test_something(self):
        self.test_bla("blablabla")
        self.test_bla("foo")
        ....

When I run the test I get:
"TypeError: test_bla() takes exactly 2 arguments (1 given)"

I checked in other regression tests and they seem to be like my code
but those don't raise any error when running the tests.

I guess that the test runner tries to call "test_bla()" automatically.
How can I prevent that?

Thanks a lot!

Julien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to