Guest User

manage.py test

a guest
Feb 20th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.21 KB | None | 0 0
  1. [jagan@unknown django_dev_setup]$ python2 manage.py runserver
  2. Validating models...
  3.  
  4. /home/jagan/mailman/mailman.client/mailman/__init__.py:19: UserWarning: Module mailman_django was already imported from /home/jagan/mailman/django_dev_setup/mailman_django/__init__.pyc, but /usr/lib/python2.7/site-packages/mailman_django-0.1-py2.7.egg is being added to sys.path
  5. import pkg_resources
  6. 0 errors found
  7. Django version 1.3.1, using settings 'django_dev_setup.settings'
  8. Development server is running at http://127.0.0.1:8000/
  9. Quit the server with CONTROL-C.
  10. [20/Feb/2012 19:47:09] "GET / HTTP/1.1" 200 1838
  11. [20/Feb/2012 19:47:09] "GET /static/mailman_django/default/css/style.css?v=2 HTTP/1.1" 200 6878
  12. [20/Feb/2012 19:47:09] "GET /static/mailman_django/default/css/forms.css HTTP/1.1" 200 737
  13. [20/Feb/2012 19:47:09] "GET /static/defaultmailman_django/default/js/libs/modernizr-1.7.min.js HTTP/1.1" 404 1865
  14. [20/Feb/2012 19:47:09] "GET /static/mailman_django/default/js/libs/jquery-1.5.1.min.js HTTP/1.1" 200 85259
  15. [20/Feb/2012 19:47:09] "GET /static/mailman_django/default/js/plugins.js HTTP/1.1" 200 0
  16. [20/Feb/2012 19:47:09] "GET /static/mailman_django/default/js/script.js HTTP/1.1" 200 19
  17. ^C[jagan@unknown django_dev_setup]$ python2 manage.py test > testresults
  18. /home/jagan/mailman/mailman.client/mailman/__init__.py:19: UserWarning: Module mailman_django was already imported from /home/jagan/mailman/django_dev_setup/mailman_django/__init__.pyc, but /usr/lib/python2.7/site-packages/mailman_django-0.1-py2.7.egg is being added to sys.path
  19. import pkg_resources
  20. ......................................................................................................................................................................................................................sh: /usr/sbin/postmap: No such file or directory
  21. Traceback (most recent call last):
  22. File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
  23. self.result = application(self.environ, self.start_response)
  24. File "/home/jagan/mailman/mailman/src/mailman/rest/wsgiapp.py", line 58, in __call__
  25. environ, start_response)
  26. File "/usr/lib/python2.7/site-packages/restish-0.12.1-py2.7.egg/restish/app.py", line 18, in __call__
  27. response = self.get_response(request, resource_or_response)
  28. File "/usr/lib/python2.7/site-packages/restish-0.12.1-py2.7.egg/restish/app.py", line 65, in get_response
  29. resource_or_response = resource_or_response(request)
  30. File "/usr/lib/python2.7/site-packages/restish-0.12.1-py2.7.egg/restish/resource.py", line 212, in __call__
  31. return _dispatch(request, match, lambda r: callable(self, r))
  32. File "/usr/lib/python2.7/site-packages/restish-0.12.1-py2.7.egg/restish/resource.py", line 243, in _dispatch
  33. response = func(request)
  34. File "/usr/lib/python2.7/site-packages/restish-0.12.1-py2.7.egg/restish/resource.py", line 212, in <lambda>
  35. return _dispatch(request, match, lambda r: callable(self, r))
  36. File "/home/jagan/mailman/mailman/src/mailman/rest/lists.py", line 187, in create
  37. mlist = create_list(**validator(request))
  38. File "/home/jagan/mailman/mailman/src/mailman/app/lifecycle.py", line 78, in create_list
  39. call_name(config.mta.incoming).create(mlist)
  40. File "/home/jagan/mailman/mailman/src/mailman/mta/postfix.py", line 67, in create
  41. self.regenerate()
  42. File "/home/jagan/mailman/mailman/src/mailman/mta/postfix.py", line 109, in regenerate
  43. raise RuntimeError(msg % (command, status, errstr))
  44. RuntimeError: command failure: /usr/sbin/postmap /home/jagan/mailman/mailman/var/data/postfix_lmtp, 127, Key has expired
  45. F
  46. ======================================================================
  47. FAIL: Doctest (mailman_django.tests.__test__)
  48. Doctest: mailman_django.tests.__test__.Doctest
  49. ----------------------------------------------------------------------
  50. Traceback (most recent call last):
  51. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 2180, in runTest
  52. raise self.failureException(self.format_failure(new.getvalue()))
  53. AssertionError: Failed doctest test for mailman_django.tests.__test__.Doctest
  54. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 19, in Doctest
  55.  
  56. ----------------------------------------------------------------------
  57. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 28, in mailman_django.tests.__test__.Doctest
  58. Failed example:
  59. testobject = setup_mm(Testobject())
  60. Exception raised:
  61. Traceback (most recent call last):
  62. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  63. compileflags, 1) in test.globs
  64. File "<doctest mailman_django.tests.__test__.Doctest[1]>", line 1, in <module>
  65. testobject = setup_mm(Testobject())
  66. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/setup.py", line 51, in setup_mm
  67. subprocess.call([mailman, '-C', cfgfile, 'start', '-q'])
  68. File "/usr/lib/python2.7/subprocess.py", line 493, in call
  69. return Popen(*popenargs, **kwargs).wait()
  70. File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
  71. errread, errwrite)
  72. File "/usr/lib/python2.7/subprocess.py", line 1228, in _execute_child
  73. raise child_exception
  74. OSError: [Errno 2] No such file or directory
  75. ----------------------------------------------------------------------
  76. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 212, in mailman_django.tests.__test__.Doctest
  77. Failed example:
  78. print type(response) == HttpResponseRedirect
  79. Expected:
  80. True
  81. Got:
  82. False
  83. ----------------------------------------------------------------------
  84. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 220, in mailman_django.tests.__test__.Doctest
  85. Failed example:
  86. "New_list1" in response.content
  87. Expected:
  88. True
  89. Got:
  90. False
  91. ----------------------------------------------------------------------
  92. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 228, in mailman_django.tests.__test__.Doctest
  93. Failed example:
  94. response = c.get('/lists/new_list1%40mail.example.com/',)
  95. Exception raised:
  96. Traceback (most recent call last):
  97. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  98. compileflags, 1) in test.globs
  99. File "<doctest mailman_django.tests.__test__.Doctest[40]>", line 1, in <module>
  100. response = c.get('/lists/new_list1%40mail.example.com/',)
  101. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  102. response = super(Client, self).get(path, data=data, **extra)
  103. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  104. return self.request(**r)
  105. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  106. response = callback(request, **param_dict)
  107. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  108. response = view_func(request, *args, **kwargs)
  109. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  110. t = loader.get_template(template_name) # You need to create a 404.html template.
  111. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  112. template, origin = find_template(template_name)
  113. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  114. raise TemplateDoesNotExist(name)
  115. TemplateDoesNotExist: 404.html
  116. ----------------------------------------------------------------------
  117. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 231, in mailman_django.tests.__test__.Doctest
  118. Failed example:
  119. _("Subscribe") in response.content
  120. Expected:
  121. True
  122. Got:
  123. False
  124. ----------------------------------------------------------------------
  125. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 233, in mailman_django.tests.__test__.Doctest
  126. Failed example:
  127. _("Archives") in response.content
  128. Expected:
  129. True
  130. Got:
  131. False
  132. ----------------------------------------------------------------------
  133. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 235, in mailman_django.tests.__test__.Doctest
  134. Failed example:
  135. _("Edit Options") in response.content
  136. Expected:
  137. True
  138. Got:
  139. False
  140. ----------------------------------------------------------------------
  141. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 237, in mailman_django.tests.__test__.Doctest
  142. Failed example:
  143. _("Unsubscribe") in response.content
  144. Expected:
  145. True
  146. Got:
  147. False
  148. ----------------------------------------------------------------------
  149. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 246, in mailman_django.tests.__test__.Doctest
  150. Failed example:
  151. response = c.get(url)
  152. Exception raised:
  153. Traceback (most recent call last):
  154. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  155. compileflags, 1) in test.globs
  156. File "<doctest mailman_django.tests.__test__.Doctest[47]>", line 1, in <module>
  157. response = c.get(url)
  158. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  159. response = super(Client, self).get(path, data=data, **extra)
  160. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  161. return self.request(**r)
  162. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  163. response = callback(request, **param_dict)
  164. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  165. response = view_func(request, *args, **kwargs)
  166. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  167. t = loader.get_template(template_name) # You need to create a 404.html template.
  168. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  169. template, origin = find_template(template_name)
  170. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  171. raise TemplateDoesNotExist(name)
  172. TemplateDoesNotExist: 404.html
  173. ----------------------------------------------------------------------
  174. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 252, in mailman_django.tests.__test__.Doctest
  175. Failed example:
  176. "[email protected]" in response.content
  177. Expected:
  178. True
  179. Got:
  180. False
  181. ----------------------------------------------------------------------
  182. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 257, in mailman_django.tests.__test__.Doctest
  183. Failed example:
  184. response = c.post(url,
  185. {"email": "[email protected]",
  186. "real_name": "James Watt",
  187. "name": "subscribe",
  188. "fqdn_listname": "[email protected]"})
  189. Exception raised:
  190. Traceback (most recent call last):
  191. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  192. compileflags, 1) in test.globs
  193. File "<doctest mailman_django.tests.__test__.Doctest[50]>", line 5, in <module>
  194. "fqdn_listname": "[email protected]"})
  195. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  196. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  197. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  198. return self.request(**r)
  199. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  200. response = callback(request, **param_dict)
  201. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  202. response = view_func(request, *args, **kwargs)
  203. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  204. t = loader.get_template(template_name) # You need to create a 404.html template.
  205. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  206. template, origin = find_template(template_name)
  207. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  208. raise TemplateDoesNotExist(name)
  209. TemplateDoesNotExist: 404.html
  210. ----------------------------------------------------------------------
  211. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 262, in mailman_django.tests.__test__.Doctest
  212. Failed example:
  213. response = c.post(url,
  214. {"email": "[email protected]",
  215. "real_name": "Katie Doe",
  216. "name": "subscribe",
  217. "fqdn_listname": "[email protected]"})
  218. Exception raised:
  219. Traceback (most recent call last):
  220. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  221. compileflags, 1) in test.globs
  222. File "<doctest mailman_django.tests.__test__.Doctest[51]>", line 5, in <module>
  223. "fqdn_listname": "[email protected]"})
  224. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  225. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  226. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  227. return self.request(**r)
  228. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  229. response = callback(request, **param_dict)
  230. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  231. response = view_func(request, *args, **kwargs)
  232. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  233. t = loader.get_template(template_name) # You need to create a 404.html template.
  234. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  235. template, origin = find_template(template_name)
  236. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  237. raise TemplateDoesNotExist(name)
  238. TemplateDoesNotExist: 404.html
  239. ----------------------------------------------------------------------
  240. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 267, in mailman_django.tests.__test__.Doctest
  241. Failed example:
  242. print (_('Subscribed')+' [email protected]') in response.content
  243. Expected:
  244. True
  245. Got:
  246. False
  247. ----------------------------------------------------------------------
  248. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 272, in mailman_django.tests.__test__.Doctest
  249. Failed example:
  250. response = c.get('/lists/new_list1%40mail.example.com/')
  251. Exception raised:
  252. Traceback (most recent call last):
  253. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  254. compileflags, 1) in test.globs
  255. File "<doctest mailman_django.tests.__test__.Doctest[53]>", line 1, in <module>
  256. response = c.get('/lists/new_list1%40mail.example.com/')
  257. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  258. response = super(Client, self).get(path, data=data, **extra)
  259. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  260. return self.request(**r)
  261. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  262. response = callback(request, **param_dict)
  263. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  264. response = view_func(request, *args, **kwargs)
  265. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  266. t = loader.get_template(template_name) # You need to create a 404.html template.
  267. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  268. template, origin = find_template(template_name)
  269. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  270. raise TemplateDoesNotExist(name)
  271. TemplateDoesNotExist: 404.html
  272. ----------------------------------------------------------------------
  273. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 273, in mailman_django.tests.__test__.Doctest
  274. Failed example:
  275. "mm_membership" in response.content
  276. Expected:
  277. True
  278. Got:
  279. False
  280. ----------------------------------------------------------------------
  281. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 278, in mailman_django.tests.__test__.Doctest
  282. Failed example:
  283. response = c.post('/subscriptions/new_list1%40mail.example.com/unsubscribe',
  284. {"email": "[email protected]",
  285. "name": "unsubscribe",
  286. "fqdn_listname": "[email protected]"})
  287. Exception raised:
  288. Traceback (most recent call last):
  289. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  290. compileflags, 1) in test.globs
  291. File "<doctest mailman_django.tests.__test__.Doctest[55]>", line 4, in <module>
  292. "fqdn_listname": "[email protected]"})
  293. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  294. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  295. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  296. return self.request(**r)
  297. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  298. response = callback(request, **param_dict)
  299. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  300. response = view_func(request, *args, **kwargs)
  301. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  302. t = loader.get_template(template_name) # You need to create a 404.html template.
  303. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  304. template, origin = find_template(template_name)
  305. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  306. raise TemplateDoesNotExist(name)
  307. TemplateDoesNotExist: 404.html
  308. ----------------------------------------------------------------------
  309. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 282, in mailman_django.tests.__test__.Doctest
  310. Failed example:
  311. print (_('Unsubscribed')+' [email protected]') in response.content
  312. Expected:
  313. True
  314. Got:
  315. False
  316. ----------------------------------------------------------------------
  317. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 291, in mailman_django.tests.__test__.Doctest
  318. Failed example:
  319. response = c.get(url)
  320. Exception raised:
  321. Traceback (most recent call last):
  322. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  323. compileflags, 1) in test.globs
  324. File "<doctest mailman_django.tests.__test__.Doctest[58]>", line 1, in <module>
  325. response = c.get(url)
  326. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  327. response = super(Client, self).get(path, data=data, **extra)
  328. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  329. return self.request(**r)
  330. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  331. response = callback(request, **param_dict)
  332. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  333. response = view_func(request, *args, **kwargs)
  334. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  335. t = loader.get_template(template_name) # You need to create a 404.html template.
  336. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  337. template, origin = find_template(template_name)
  338. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  339. raise TemplateDoesNotExist(name)
  340. TemplateDoesNotExist: 404.html
  341. ----------------------------------------------------------------------
  342. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 303, in mailman_django.tests.__test__.Doctest
  343. Failed example:
  344. response = c.post(url,
  345. Exception raised:
  346. Traceback (most recent call last):
  347. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  348. compileflags, 1) in test.globs
  349. File "<doctest mailman_django.tests.__test__.Doctest[61]>", line 2, in <module>
  350. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  351. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  352. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  353. return self.request(**r)
  354. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  355. response = callback(request, **param_dict)
  356. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  357. response = view_func(request, *args, **kwargs)
  358. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  359. t = loader.get_template(template_name) # You need to create a 404.html template.
  360. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  361. template, origin = find_template(template_name)
  362. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  363. raise TemplateDoesNotExist(name)
  364. TemplateDoesNotExist: 404.html
  365. ----------------------------------------------------------------------
  366. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 309, in mailman_django.tests.__test__.Doctest
  367. Failed example:
  368. print _("The mass subscription was successful.") in response.content
  369. Expected:
  370. True
  371. Got:
  372. False
  373. ----------------------------------------------------------------------
  374. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 318, in mailman_django.tests.__test__.Doctest
  375. Failed example:
  376. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  377. Exception raised:
  378. Traceback (most recent call last):
  379. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  380. compileflags, 1) in test.globs
  381. File "<doctest mailman_django.tests.__test__.Doctest[63]>", line 1, in <module>
  382. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  383. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  384. response = super(Client, self).get(path, data=data, **extra)
  385. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  386. return self.request(**r)
  387. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  388. response = callback(request, *callback_args, **callback_kwargs)
  389. File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
  390. return view_func(request, *args, **kwargs)
  391. File "/home/jagan/mailman/django_dev_setup/mailman_django/views.py", line 438, in user_settings
  392. the_list = List.objects.get(fqdn_listname=fqdn_listname)
  393. File "/home/jagan/mailman/django_dev_setup/mailman_django/models.py", line 67, in get
  394. raise Mailman404Error
  395. Mailman404Error
  396. ----------------------------------------------------------------------
  397. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 319, in mailman_django.tests.__test__.Doctest
  398. Failed example:
  399. print "Membership Settings" in response.content
  400. Expected:
  401. True
  402. Got:
  403. False
  404. ----------------------------------------------------------------------
  405. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 324, in mailman_django.tests.__test__.Doctest
  406. Failed example:
  407. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  408. Exception raised:
  409. Traceback (most recent call last):
  410. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  411. compileflags, 1) in test.globs
  412. File "<doctest mailman_django.tests.__test__.Doctest[65]>", line 1, in <module>
  413. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  414. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  415. response = super(Client, self).get(path, data=data, **extra)
  416. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  417. return self.request(**r)
  418. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  419. response = callback(request, *callback_args, **callback_kwargs)
  420. File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
  421. return view_func(request, *args, **kwargs)
  422. File "/home/jagan/mailman/django_dev_setup/mailman_django/views.py", line 438, in user_settings
  423. the_list = List.objects.get(fqdn_listname=fqdn_listname)
  424. File "/home/jagan/mailman/django_dev_setup/mailman_django/models.py", line 67, in get
  425. raise Mailman404Error
  426. Mailman404Error
  427. ----------------------------------------------------------------------
  428. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 325, in mailman_django.tests.__test__.Doctest
  429. Failed example:
  430. print ("Membership Settings" in response.content) and ("for [email protected]" in response.content)
  431. Expected:
  432. True
  433. Got:
  434. False
  435. ----------------------------------------------------------------------
  436. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 338, in mailman_django.tests.__test__.Doctest
  437. Failed example:
  438. print "New_list1" in response.content
  439. Expected:
  440. True
  441. Got:
  442. False
  443. ----------------------------------------------------------------------
  444. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 342, in mailman_django.tests.__test__.Doctest
  445. Failed example:
  446. response = c.get('/delete_list/new_list1%40mail.example.com/',)
  447. Exception raised:
  448. Traceback (most recent call last):
  449. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  450. compileflags, 1) in test.globs
  451. File "<doctest mailman_django.tests.__test__.Doctest[69]>", line 1, in <module>
  452. response = c.get('/delete_list/new_list1%40mail.example.com/',)
  453. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  454. response = super(Client, self).get(path, data=data, **extra)
  455. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  456. return self.request(**r)
  457. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  458. response = callback(request, **param_dict)
  459. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  460. response = view_func(request, *args, **kwargs)
  461. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  462. t = loader.get_template(template_name) # You need to create a 404.html template.
  463. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  464. template, origin = find_template(template_name)
  465. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  466. raise TemplateDoesNotExist(name)
  467. TemplateDoesNotExist: 404.html
  468. ----------------------------------------------------------------------
  469. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 343, in mailman_django.tests.__test__.Doctest
  470. Failed example:
  471. print "Please confirm" in response.content
  472. Expected:
  473. True
  474. Got:
  475. False
  476. ----------------------------------------------------------------------
  477. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 347, in mailman_django.tests.__test__.Doctest
  478. Failed example:
  479. response = c.post('/delete_list/new_list1%40mail.example.com/',)
  480. Exception raised:
  481. Traceback (most recent call last):
  482. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  483. compileflags, 1) in test.globs
  484. File "<doctest mailman_django.tests.__test__.Doctest[71]>", line 1, in <module>
  485. response = c.post('/delete_list/new_list1%40mail.example.com/',)
  486. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  487. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  488. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  489. return self.request(**r)
  490. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  491. response = callback(request, **param_dict)
  492. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  493. response = view_func(request, *args, **kwargs)
  494. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  495. t = loader.get_template(template_name) # You need to create a 404.html template.
  496. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  497. template, origin = find_template(template_name)
  498. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  499. raise TemplateDoesNotExist(name)
  500. TemplateDoesNotExist: 404.html
  501. ----------------------------------------------------------------------
  502. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 359, in mailman_django.tests.__test__.Doctest
  503. Failed example:
  504. teardown_mm(testobject)
  505. Exception raised:
  506. Traceback (most recent call last):
  507. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  508. compileflags, 1) in test.globs
  509. File "<doctest mailman_django.tests.__test__.Doctest[74]>", line 1, in <module>
  510. teardown_mm(testobject)
  511. NameError: name 'testobject' is not defined
  512.  
  513.  
  514. ----------------------------------------------------------------------
  515. Ran 215 tests in 7.353s
  516.  
  517. FAILED (failures=1)
Advertisement
Add Comment
Please, Sign In to add comment