On Oct 6, 4:07 am, jimgardener <jimgarde...@gmail.com> wrote:
> hi
> In my application,I have the following structure for tests
>
> myapp---__init__.py
> |
> |
> tests----- __init__.py #contains from functional import * from utility
> import *
>        |
>        |
>        ----functional ----- __init__.py
>        |
>         -----utility----__init__.py #from myutil_tests import *
>                     |
>                     ----myutil_tests.py
>
> in myutil_tests.py ,I have
>
> import unittest
> class UtilTests(unittest.TestCase):
>     def setUp(self):
>        pass
>
>     def test_some_testA(self):
>         ...
>
>     def test_some_testB(self):
>         ...
>
> When I run python manage.py test myapp  ,all the given tests are
> executed.I would like to know ,how I can call test_some_testA() alone.
> I tried python manage.py test
> myapp.utility.myutil_tests.UtilTests.test_some_testA
> but I am getting
>
> ValueError: Test label
> 'myapp.utility.myutil_tests.UtilTests.test_some_testA' should be of
> the form app.TestCase or app.TestCase.test_method
>
> Can someone help me correct this?
>
> thanks
> jim

Well, the error message tells you what to do. You just want to call
myapp.UtilTests.test_some_testA.
--
DR.

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

Reply via email to