Advertisement
Guest User

manage.py test

a guest
Feb 20th, 2012
134
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. "james@example.com" 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": "james@example.com",
  186. "real_name": "James Watt",
  187. "name": "subscribe",
  188. "fqdn_listname": "new_list1@mail.example.com"})
  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": "new_list1@mail.example.com"})
  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": "katie@example.com",
  215. "real_name": "Katie Doe",
  216. "name": "subscribe",
  217. "fqdn_listname": "new_list1@mail.example.com"})
  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": "new_list1@mail.example.com"})
  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')+' katie@example.com') 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": "katie@example.com",
  285. "name": "unsubscribe",
  286. "fqdn_listname": "new_list1@mail.example.com"})
  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": "new_list1@mail.example.com"})
  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')+' katie@example.com') 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. {"emails": "liza@example.com\ngeorge@example.com"})
  346. Exception raised:
  347. Traceback (most recent call last):
  348. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  349. compileflags, 1) in test.globs
  350. File "<doctest mailman_django.tests.__test__.Doctest[61]>", line 2, in <module>
  351. {"emails": "liza@example.com\ngeorge@example.com"})
  352. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  353. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  354. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  355. return self.request(**r)
  356. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  357. response = callback(request, **param_dict)
  358. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  359. response = view_func(request, *args, **kwargs)
  360. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  361. t = loader.get_template(template_name) # You need to create a 404.html template.
  362. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  363. template, origin = find_template(template_name)
  364. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  365. raise TemplateDoesNotExist(name)
  366. TemplateDoesNotExist: 404.html
  367. ----------------------------------------------------------------------
  368. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 309, in mailman_django.tests.__test__.Doctest
  369. Failed example:
  370. print _("The mass subscription was successful.") in response.content
  371. Expected:
  372. True
  373. Got:
  374. False
  375. ----------------------------------------------------------------------
  376. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 318, in mailman_django.tests.__test__.Doctest
  377. Failed example:
  378. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  379. Exception raised:
  380. Traceback (most recent call last):
  381. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  382. compileflags, 1) in test.globs
  383. File "<doctest mailman_django.tests.__test__.Doctest[63]>", line 1, in <module>
  384. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  385. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  386. response = super(Client, self).get(path, data=data, **extra)
  387. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  388. return self.request(**r)
  389. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  390. response = callback(request, *callback_args, **callback_kwargs)
  391. File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
  392. return view_func(request, *args, **kwargs)
  393. File "/home/jagan/mailman/django_dev_setup/mailman_django/views.py", line 438, in user_settings
  394. the_list = List.objects.get(fqdn_listname=fqdn_listname)
  395. File "/home/jagan/mailman/django_dev_setup/mailman_django/models.py", line 67, in get
  396. raise Mailman404Error
  397. Mailman404Error
  398. ----------------------------------------------------------------------
  399. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 319, in mailman_django.tests.__test__.Doctest
  400. Failed example:
  401. print "Membership Settings" in response.content
  402. Expected:
  403. True
  404. Got:
  405. False
  406. ----------------------------------------------------------------------
  407. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 324, in mailman_django.tests.__test__.Doctest
  408. Failed example:
  409. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  410. Exception raised:
  411. Traceback (most recent call last):
  412. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  413. compileflags, 1) in test.globs
  414. File "<doctest mailman_django.tests.__test__.Doctest[65]>", line 1, in <module>
  415. response = c.get('/membership_settings/new_list1%40mail.example.com/')
  416. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  417. response = super(Client, self).get(path, data=data, **extra)
  418. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  419. return self.request(**r)
  420. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  421. response = callback(request, *callback_args, **callback_kwargs)
  422. File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
  423. return view_func(request, *args, **kwargs)
  424. File "/home/jagan/mailman/django_dev_setup/mailman_django/views.py", line 438, in user_settings
  425. the_list = List.objects.get(fqdn_listname=fqdn_listname)
  426. File "/home/jagan/mailman/django_dev_setup/mailman_django/models.py", line 67, in get
  427. raise Mailman404Error
  428. Mailman404Error
  429. ----------------------------------------------------------------------
  430. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 325, in mailman_django.tests.__test__.Doctest
  431. Failed example:
  432. print ("Membership Settings" in response.content) and ("for new_list1@mail.example.com" in response.content)
  433. Expected:
  434. True
  435. Got:
  436. False
  437. ----------------------------------------------------------------------
  438. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 338, in mailman_django.tests.__test__.Doctest
  439. Failed example:
  440. print "New_list1" in response.content
  441. Expected:
  442. True
  443. Got:
  444. False
  445. ----------------------------------------------------------------------
  446. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 342, in mailman_django.tests.__test__.Doctest
  447. Failed example:
  448. response = c.get('/delete_list/new_list1%40mail.example.com/',)
  449. Exception raised:
  450. Traceback (most recent call last):
  451. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  452. compileflags, 1) in test.globs
  453. File "<doctest mailman_django.tests.__test__.Doctest[69]>", line 1, in <module>
  454. response = c.get('/delete_list/new_list1%40mail.example.com/',)
  455. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 439, in get
  456. response = super(Client, self).get(path, data=data, **extra)
  457. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 241, in get
  458. return self.request(**r)
  459. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  460. response = callback(request, **param_dict)
  461. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  462. response = view_func(request, *args, **kwargs)
  463. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  464. t = loader.get_template(template_name) # You need to create a 404.html template.
  465. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  466. template, origin = find_template(template_name)
  467. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  468. raise TemplateDoesNotExist(name)
  469. TemplateDoesNotExist: 404.html
  470. ----------------------------------------------------------------------
  471. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 343, in mailman_django.tests.__test__.Doctest
  472. Failed example:
  473. print "Please confirm" in response.content
  474. Expected:
  475. True
  476. Got:
  477. False
  478. ----------------------------------------------------------------------
  479. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 347, in mailman_django.tests.__test__.Doctest
  480. Failed example:
  481. response = c.post('/delete_list/new_list1%40mail.example.com/',)
  482. Exception raised:
  483. Traceback (most recent call last):
  484. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  485. compileflags, 1) in test.globs
  486. File "<doctest mailman_django.tests.__test__.Doctest[71]>", line 1, in <module>
  487. response = c.post('/delete_list/new_list1%40mail.example.com/',)
  488. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 449, in post
  489. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  490. File "/usr/lib/python2.7/site-packages/django/test/client.py", line 259, in post
  491. return self.request(**r)
  492. File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
  493. response = callback(request, **param_dict)
  494. File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
  495. response = view_func(request, *args, **kwargs)
  496. File "/usr/lib/python2.7/site-packages/django/views/defaults.py", line 18, in page_not_found
  497. t = loader.get_template(template_name) # You need to create a 404.html template.
  498. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
  499. template, origin = find_template(template_name)
  500. File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  501. raise TemplateDoesNotExist(name)
  502. TemplateDoesNotExist: 404.html
  503. ----------------------------------------------------------------------
  504. File "/home/jagan/mailman/django_dev_setup/mailman_django/tests/__init__.py", line 359, in mailman_django.tests.__test__.Doctest
  505. Failed example:
  506. teardown_mm(testobject)
  507. Exception raised:
  508. Traceback (most recent call last):
  509. File "/usr/lib/python2.7/site-packages/django/test/_doctest.py", line 1267, in __run
  510. compileflags, 1) in test.globs
  511. File "<doctest mailman_django.tests.__test__.Doctest[74]>", line 1, in <module>
  512. teardown_mm(testobject)
  513. NameError: name 'testobject' is not defined
  514.  
  515.  
  516. ----------------------------------------------------------------------
  517. Ran 215 tests in 7.353s
  518.  
  519. FAILED (failures=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement