daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Aug 31st, 2015 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. scons: Reading SConscript files ...
  2. scons: done reading SConscript files.
  3. scons: Building targets ...
  4. python3 tests/hand-in_1_1.py
  5. ......
  6. ----------------------------------------------------------------------
  7. Ran 6 tests in 0.009s
  8.  
  9. OK
  10. python3 tests/hand-in_1_2.py
  11. ...
  12. ----------------------------------------------------------------------
  13. Ran 3 tests in 0.005s
  14.  
  15. OK
  16. python3 tests/hand-in_1_3.py
  17. ....
  18. ----------------------------------------------------------------------
  19. Ran 4 tests in 0.006s
  20.  
  21. OK
  22. python3 tests/hand-in_1_4.py
  23. .....
  24. ----------------------------------------------------------------------
  25. Ran 5 tests in 0.008s
  26.  
  27. OK
  28. python3 tests/hand-in_1_5.py
  29. .....
  30. ----------------------------------------------------------------------
  31. Ran 5 tests in 0.008s
  32.  
  33. OK
  34. python3 tests/hand-in_1_6.py
  35. ....
  36. ----------------------------------------------------------------------
  37. Ran 4 tests in 0.006s
  38.  
  39. OK
  40. python3 tests/hand-in_2_1.py
  41. ....
  42. ----------------------------------------------------------------------
  43. Ran 4 tests in 0.006s
  44.  
  45. OK
  46. python3 tests/hand-in_2_2.py
  47. ..
  48. ----------------------------------------------------------------------
  49. Ran 2 tests in 0.003s
  50.  
  51. OK
  52. python3 tests/hand-in_2_3.py
  53. ....
  54. ----------------------------------------------------------------------
  55. Ran 4 tests in 0.007s
  56.  
  57. OK
  58. python3 tests/hand-in_2_4.py
  59. ....
  60. ----------------------------------------------------------------------
  61. Ran 4 tests in 0.006s
  62.  
  63. OK
  64. python3 tests/hand-in_3_1.py
  65. FFFFFFF..FFFF...FFFF..FFFF
  66. ======================================================================
  67. FAIL: test_add_students (__main__.Hand_In_3_1_Case)
  68. ----------------------------------------------------------------------
  69. Traceback (most recent call last):
  70.   File "tests/hand-in_3_1.py", line 92, in test_add_students
  71.     self.check(self.sc + [ 9, 10 ], self.sd)
  72.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  73.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  74. AssertionError: False is not true :
  75.  
  76. -----
  77. error
  78. -----
  79.  
  80. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  81.  
  82. -----
  83. input
  84. -----
  85.  
  86. 1
  87. Student 1
  88. student1@student.uia.no
  89. 1
  90. Student 2
  91. student2@student.uia.no
  92. 1
  93. Student 3
  94. student3@student.uia.no
  95. 9
  96. 10
  97.  
  98. -----
  99. output
  100. -----
  101.  
  102. student id=1, name=Jon, email=jon@kanon.no
  103.  
  104. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  105.  
  106. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  107.  
  108.  
  109.  
  110. ======================================================================
  111. FAIL: test_add_test_results (__main__.Hand_In_3_1_Case)
  112. ----------------------------------------------------------------------
  113. Traceback (most recent call last):
  114.   File "tests/hand-in_3_1.py", line 134, in test_add_test_results
  115.     self.check(self.sc + self.tc + self.trc + [ 9, 10 ], self.trd)
  116.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  117.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  118. AssertionError: False is not true :
  119.  
  120. -----
  121. error
  122. -----
  123.  
  124. Failed to find 'student id = 1, course name = Course 1, test id = 1, test name = Course 1 exam, grade = 1' in output.
  125.  
  126. -----
  127. input
  128. -----
  129.  
  130. 1
  131. Student 1
  132. student1@student.uia.no
  133. 1
  134. Student 2
  135. student2@student.uia.no
  136. 1
  137. Student 3
  138. student3@student.uia.no
  139. 4
  140. Course 1
  141. Course 1 exam
  142. 2015.12.07
  143. 4
  144. Course 2
  145. Course 2 exam
  146. 2015.12.08
  147. 4
  148. Course 3
  149. Course 3 exam
  150. 2015.12.09
  151. 7
  152. 1
  153. 1
  154. 1
  155. 7
  156. 1
  157. 2
  158. 2
  159. 7
  160. 1
  161. 3
  162. 3
  163. 7
  164. 2
  165. 1
  166. 4
  167. 7
  168. 2
  169. 2
  170. 5
  171. 7
  172. 2
  173. 3
  174. 6
  175. 7
  176. 3
  177. 1
  178. 7
  179. 7
  180. 3
  181. 2
  182. 8
  183. 7
  184. 3
  185. 3
  186. 9
  187. 9
  188. 10
  189.  
  190. -----
  191. output
  192. -----
  193.  
  194. student id=1, name=Jon, email=jon@kanon.no
  195.  
  196. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  197.  
  198. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  199.  
  200.  
  201.  
  202. ======================================================================
  203. FAIL: test_add_tests (__main__.Hand_In_3_1_Case)
  204. ----------------------------------------------------------------------
  205. Traceback (most recent call last):
  206.   File "tests/hand-in_3_1.py", line 113, in test_add_tests
  207.     self.check(self.tc + [ 9, 10 ], self.td)
  208.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  209.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  210. AssertionError: False is not true :
  211.  
  212. -----
  213. error
  214. -----
  215.  
  216. Failed to find 'test id = 1, course name = Course 1, test name = Course 1 exam, date = 2015.12.07' in output.
  217.  
  218. -----
  219. input
  220. -----
  221.  
  222. 4
  223. Course 1
  224. Course 1 exam
  225. 2015.12.07
  226. 4
  227. Course 2
  228. Course 2 exam
  229. 2015.12.08
  230. 4
  231. Course 3
  232. Course 3 exam
  233. 2015.12.09
  234. 9
  235. 10
  236.  
  237. -----
  238. output
  239. -----
  240.  
  241. student id=1, name=Jon, email=jon@kanon.no
  242.  
  243. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  244.  
  245. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  246.  
  247.  
  248.  
  249. ======================================================================
  250. FAIL: test_edit_first_student (__main__.Hand_In_3_1_Case)
  251. ----------------------------------------------------------------------
  252. Traceback (most recent call last):
  253.   File "tests/hand-in_3_1.py", line 95, in test_edit_first_student
  254.     self.check(self.sc + [ 2, 1 ] + self.s1e.cmd() + [ 9, 10 ], [ self.s1e ] + self.sd[1:], [ self.sd[0] ])
  255.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  256.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  257. AssertionError: False is not true :
  258.  
  259. -----
  260. error
  261. -----
  262.  
  263. Failed to find 'student id = 1, name = Student 4, email = student4@student.uia.no' in output.
  264.  
  265. -----
  266. input
  267. -----
  268.  
  269. 1
  270. Student 1
  271. student1@student.uia.no
  272. 1
  273. Student 2
  274. student2@student.uia.no
  275. 1
  276. Student 3
  277. student3@student.uia.no
  278. 2
  279. 1
  280. Student 4
  281. student4@student.uia.no
  282. 9
  283. 10
  284.  
  285. -----
  286. output
  287. -----
  288.  
  289. student id=1, name=Jon, email=jon@kanon.no
  290.  
  291. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  292.  
  293. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  294.  
  295.  
  296.  
  297. ======================================================================
  298. FAIL: test_edit_first_test (__main__.Hand_In_3_1_Case)
  299. ----------------------------------------------------------------------
  300. Traceback (most recent call last):
  301.   File "tests/hand-in_3_1.py", line 116, in test_edit_first_test
  302.     self.check(self.tc + [ 5, 1 ] + self.t1e.cmd() + [ 9, 10 ], [ self.t1e ] + self.td[1:], [ self.td[0] ])
  303.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  304.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  305. AssertionError: False is not true :
  306.  
  307. -----
  308. error
  309. -----
  310.  
  311. Failed to find 'test id = 1, course name = Course 4, test name = Course 4 exam, date = 2015.12.10' in output.
  312.  
  313. -----
  314. input
  315. -----
  316.  
  317. 4
  318. Course 1
  319. Course 1 exam
  320. 2015.12.07
  321. 4
  322. Course 2
  323. Course 2 exam
  324. 2015.12.08
  325. 4
  326. Course 3
  327. Course 3 exam
  328. 2015.12.09
  329. 5
  330. 1
  331. Course 4
  332. Course 4 exam
  333. 2015.12.10
  334. 9
  335. 10
  336.  
  337. -----
  338. output
  339. -----
  340.  
  341. student id=1, name=Jon, email=jon@kanon.no
  342.  
  343. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  344.  
  345. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  346.  
  347.  
  348.  
  349. ======================================================================
  350. FAIL: test_edit_last_student (__main__.Hand_In_3_1_Case)
  351. ----------------------------------------------------------------------
  352. Traceback (most recent call last):
  353.   File "tests/hand-in_3_1.py", line 98, in test_edit_last_student
  354.     self.check(self.sc + [ 2, 3 ] + self.s3e.cmd() + [ 9, 10 ], self.sd[:-1] + [ self.s3e ], [ self.sd[2] ])
  355.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  356.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  357. AssertionError: False is not true :
  358.  
  359. -----
  360. error
  361. -----
  362.  
  363. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  364.  
  365. -----
  366. input
  367. -----
  368.  
  369. 1
  370. Student 1
  371. student1@student.uia.no
  372. 1
  373. Student 2
  374. student2@student.uia.no
  375. 1
  376. Student 3
  377. student3@student.uia.no
  378. 2
  379. 3
  380. Student 4
  381. student4@student.uia.no
  382. 9
  383. 10
  384.  
  385. -----
  386. output
  387. -----
  388.  
  389. student id=1, name=Jon, email=jon@kanon.no
  390.  
  391. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  392.  
  393. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  394.  
  395.  
  396.  
  397. ======================================================================
  398. FAIL: test_edit_last_test (__main__.Hand_In_3_1_Case)
  399. ----------------------------------------------------------------------
  400. Traceback (most recent call last):
  401.   File "tests/hand-in_3_1.py", line 119, in test_edit_last_test
  402.     self.check(self.tc + [ 5, 3 ] + self.t3e.cmd() + [ 9, 10 ], self.td[:-1] + [ self.t3e ], [ self.td[2] ])
  403.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  404.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  405. AssertionError: False is not true :
  406.  
  407. -----
  408. error
  409. -----
  410.  
  411. Failed to find 'test id = 1, course name = Course 1, test name = Course 1 exam, date = 2015.12.07' in output.
  412.  
  413. -----
  414. input
  415. -----
  416.  
  417. 4
  418. Course 1
  419. Course 1 exam
  420. 2015.12.07
  421. 4
  422. Course 2
  423. Course 2 exam
  424. 2015.12.08
  425. 4
  426. Course 3
  427. Course 3 exam
  428. 2015.12.09
  429. 5
  430. 3
  431. Course 4
  432. Course 4 exam
  433. 2015.12.10
  434. 9
  435. 10
  436.  
  437. -----
  438. output
  439. -----
  440.  
  441. student id=1, name=Jon, email=jon@kanon.no
  442.  
  443. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  444.  
  445. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  446.  
  447.  
  448.  
  449. ======================================================================
  450. FAIL: test_edit_test_result_first_student_first_test_back (__main__.Hand_In_3_1_Case)
  451. ----------------------------------------------------------------------
  452. Traceback (most recent call last):
  453.   File "tests/hand-in_3_1.py", line 137, in test_edit_test_result_first_student_first_test_back
  454.     self.check(self.sc + self.tc + self.trc + [ 7, 1, 1, self.tr1e.grade, 9, 10 ], self.sd + self.td + [ self.tr1e ] + self.trd[1:], [ self.trd[0] ])
  455.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  456.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  457. AssertionError: False is not true :
  458.  
  459. -----
  460. error
  461. -----
  462.  
  463. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  464.  
  465. -----
  466. input
  467. -----
  468.  
  469. 1
  470. Student 1
  471. student1@student.uia.no
  472. 1
  473. Student 2
  474. student2@student.uia.no
  475. 1
  476. Student 3
  477. student3@student.uia.no
  478. 4
  479. Course 1
  480. Course 1 exam
  481. 2015.12.07
  482. 4
  483. Course 2
  484. Course 2 exam
  485. 2015.12.08
  486. 4
  487. Course 3
  488. Course 3 exam
  489. 2015.12.09
  490. 7
  491. 1
  492. 1
  493. 1
  494. 7
  495. 1
  496. 2
  497. 2
  498. 7
  499. 1
  500. 3
  501. 3
  502. 7
  503. 2
  504. 1
  505. 4
  506. 7
  507. 2
  508. 2
  509. 5
  510. 7
  511. 2
  512. 3
  513. 6
  514. 7
  515. 3
  516. 1
  517. 7
  518. 7
  519. 3
  520. 2
  521. 8
  522. 7
  523. 3
  524. 3
  525. 9
  526. 7
  527. 1
  528. 1
  529. 42
  530. 9
  531. 10
  532.  
  533. -----
  534. output
  535. -----
  536.  
  537. student id=1, name=Jon, email=jon@kanon.no
  538.  
  539. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  540.  
  541. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  542.  
  543.  
  544.  
  545. ======================================================================
  546. FAIL: test_edit_test_result_first_student_last_test_back (__main__.Hand_In_3_1_Case)
  547. ----------------------------------------------------------------------
  548. Traceback (most recent call last):
  549.   File "tests/hand-in_3_1.py", line 140, in test_edit_test_result_first_student_last_test_back
  550.     self.check(self.sc + self.tc + self.trc + [ 7, 1, 3, self.tr3e.grade, 9, 10 ], self.sd + self.td + self.trd[:2] + [ self.tr3e ] + self.trd[3:], [ self.trd[2] ])
  551.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  552.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  553. AssertionError: False is not true :
  554.  
  555. -----
  556. error
  557. -----
  558.  
  559. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  560.  
  561. -----
  562. input
  563. -----
  564.  
  565. 1
  566. Student 1
  567. student1@student.uia.no
  568. 1
  569. Student 2
  570. student2@student.uia.no
  571. 1
  572. Student 3
  573. student3@student.uia.no
  574. 4
  575. Course 1
  576. Course 1 exam
  577. 2015.12.07
  578. 4
  579. Course 2
  580. Course 2 exam
  581. 2015.12.08
  582. 4
  583. Course 3
  584. Course 3 exam
  585. 2015.12.09
  586. 7
  587. 1
  588. 1
  589. 1
  590. 7
  591. 1
  592. 2
  593. 2
  594. 7
  595. 1
  596. 3
  597. 3
  598. 7
  599. 2
  600. 1
  601. 4
  602. 7
  603. 2
  604. 2
  605. 5
  606. 7
  607. 2
  608. 3
  609. 6
  610. 7
  611. 3
  612. 1
  613. 7
  614. 7
  615. 3
  616. 2
  617. 8
  618. 7
  619. 3
  620. 3
  621. 9
  622. 7
  623. 1
  624. 3
  625. 42
  626. 9
  627. 10
  628.  
  629. -----
  630. output
  631. -----
  632.  
  633. student id=1, name=Jon, email=jon@kanon.no
  634.  
  635. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  636.  
  637. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  638.  
  639.  
  640.  
  641. ======================================================================
  642. FAIL: test_edit_test_result_last_student_first_test_back (__main__.Hand_In_3_1_Case)
  643. ----------------------------------------------------------------------
  644. Traceback (most recent call last):
  645.   File "tests/hand-in_3_1.py", line 143, in test_edit_test_result_last_student_first_test_back
  646.     self.check(self.sc + self.tc + self.trc + [ 7, 3, 1, self.tr7e.grade, 9, 10 ], self.sd + self.td + self.trd[:6] + [ self.tr7e ] + self.trd[7:], [ self.trd[6] ])
  647.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  648.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  649. AssertionError: False is not true :
  650.  
  651. -----
  652. error
  653. -----
  654.  
  655. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  656.  
  657. -----
  658. input
  659. -----
  660.  
  661. 1
  662. Student 1
  663. student1@student.uia.no
  664. 1
  665. Student 2
  666. student2@student.uia.no
  667. 1
  668. Student 3
  669. student3@student.uia.no
  670. 4
  671. Course 1
  672. Course 1 exam
  673. 2015.12.07
  674. 4
  675. Course 2
  676. Course 2 exam
  677. 2015.12.08
  678. 4
  679. Course 3
  680. Course 3 exam
  681. 2015.12.09
  682. 7
  683. 1
  684. 1
  685. 1
  686. 7
  687. 1
  688. 2
  689. 2
  690. 7
  691. 1
  692. 3
  693. 3
  694. 7
  695. 2
  696. 1
  697. 4
  698. 7
  699. 2
  700. 2
  701. 5
  702. 7
  703. 2
  704. 3
  705. 6
  706. 7
  707. 3
  708. 1
  709. 7
  710. 7
  711. 3
  712. 2
  713. 8
  714. 7
  715. 3
  716. 3
  717. 9
  718. 7
  719. 3
  720. 1
  721. 42
  722. 9
  723. 10
  724.  
  725. -----
  726. output
  727. -----
  728.  
  729. student id=1, name=Jon, email=jon@kanon.no
  730.  
  731. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  732.  
  733. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  734.  
  735.  
  736.  
  737. ======================================================================
  738. FAIL: test_edit_test_result_last_student_last_test_back (__main__.Hand_In_3_1_Case)
  739. ----------------------------------------------------------------------
  740. Traceback (most recent call last):
  741.   File "tests/hand-in_3_1.py", line 146, in test_edit_test_result_last_student_last_test_back
  742.     self.check(self.sc + self.tc + self.trc + [ 7, 3, 3, self.tr9e.grade, 9, 10 ], self.sd + self.td + self.trd[:-1] + [ self.tr9e ], [ self.trd[8] ])
  743.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  744.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  745. AssertionError: False is not true :
  746.  
  747. -----
  748. error
  749. -----
  750.  
  751. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  752.  
  753. -----
  754. input
  755. -----
  756.  
  757. 1
  758. Student 1
  759. student1@student.uia.no
  760. 1
  761. Student 2
  762. student2@student.uia.no
  763. 1
  764. Student 3
  765. student3@student.uia.no
  766. 4
  767. Course 1
  768. Course 1 exam
  769. 2015.12.07
  770. 4
  771. Course 2
  772. Course 2 exam
  773. 2015.12.08
  774. 4
  775. Course 3
  776. Course 3 exam
  777. 2015.12.09
  778. 7
  779. 1
  780. 1
  781. 1
  782. 7
  783. 1
  784. 2
  785. 2
  786. 7
  787. 1
  788. 3
  789. 3
  790. 7
  791. 2
  792. 1
  793. 4
  794. 7
  795. 2
  796. 2
  797. 5
  798. 7
  799. 2
  800. 3
  801. 6
  802. 7
  803. 3
  804. 1
  805. 7
  806. 7
  807. 3
  808. 2
  809. 8
  810. 7
  811. 3
  812. 3
  813. 9
  814. 7
  815. 3
  816. 3
  817. 42
  818. 9
  819. 10
  820.  
  821. -----
  822. output
  823. -----
  824.  
  825. student id=1, name=Jon, email=jon@kanon.no
  826.  
  827. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  828.  
  829. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  830.  
  831.  
  832.  
  833. ======================================================================
  834. FAIL: test_remove_first_student (__main__.Hand_In_3_1_Case)
  835. ----------------------------------------------------------------------
  836. Traceback (most recent call last):
  837.   File "tests/hand-in_3_1.py", line 104, in test_remove_first_student
  838.     self.check(self.sc + [ 3, 1, 9, 10 ], self.sd[1:], [ self.sd[0] ])
  839.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  840.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  841. AssertionError: False is not true :
  842.  
  843. -----
  844. error
  845. -----
  846.  
  847. Failed to find 'student id = 2, name = Student 2, email = student2@student.uia.no' in output.
  848.  
  849. -----
  850. input
  851. -----
  852.  
  853. 1
  854. Student 1
  855. student1@student.uia.no
  856. 1
  857. Student 2
  858. student2@student.uia.no
  859. 1
  860. Student 3
  861. student3@student.uia.no
  862. 3
  863. 1
  864. 9
  865. 10
  866.  
  867. -----
  868. output
  869. -----
  870.  
  871. student id=1, name=Jon, email=jon@kanon.no
  872.  
  873. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  874.  
  875. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  876.  
  877.  
  878.  
  879. ======================================================================
  880. FAIL: test_remove_first_test (__main__.Hand_In_3_1_Case)
  881. ----------------------------------------------------------------------
  882. Traceback (most recent call last):
  883.   File "tests/hand-in_3_1.py", line 125, in test_remove_first_test
  884.     self.check(self.tc + [ 6, 1, 9, 10 ], self.td[1:], [ self.td[0] ])
  885.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  886.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  887. AssertionError: False is not true :
  888.  
  889. -----
  890. error
  891. -----
  892.  
  893. Failed to find 'test id = 2, course name = Course 2, test name = Course 2 exam, date = 2015.12.08' in output.
  894.  
  895. -----
  896. input
  897. -----
  898.  
  899. 4
  900. Course 1
  901. Course 1 exam
  902. 2015.12.07
  903. 4
  904. Course 2
  905. Course 2 exam
  906. 2015.12.08
  907. 4
  908. Course 3
  909. Course 3 exam
  910. 2015.12.09
  911. 6
  912. 1
  913. 9
  914. 10
  915.  
  916. -----
  917. output
  918. -----
  919.  
  920. student id=1, name=Jon, email=jon@kanon.no
  921.  
  922. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  923.  
  924. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  925.  
  926.  
  927.  
  928. ======================================================================
  929. FAIL: test_remove_last_student (__main__.Hand_In_3_1_Case)
  930. ----------------------------------------------------------------------
  931. Traceback (most recent call last):
  932.   File "tests/hand-in_3_1.py", line 107, in test_remove_last_student
  933.     self.check(self.sc + [ 3, 3, 9, 10 ], self.sd[:-1], [ self.sd[2] ])
  934.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  935.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  936. AssertionError: False is not true :
  937.  
  938. -----
  939. error
  940. -----
  941.  
  942. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  943.  
  944. -----
  945. input
  946. -----
  947.  
  948. 1
  949. Student 1
  950. student1@student.uia.no
  951. 1
  952. Student 2
  953. student2@student.uia.no
  954. 1
  955. Student 3
  956. student3@student.uia.no
  957. 3
  958. 3
  959. 9
  960. 10
  961.  
  962. -----
  963. output
  964. -----
  965.  
  966. student id=1, name=Jon, email=jon@kanon.no
  967.  
  968. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  969.  
  970. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  971.  
  972.  
  973.  
  974. ======================================================================
  975. FAIL: test_remove_last_test (__main__.Hand_In_3_1_Case)
  976. ----------------------------------------------------------------------
  977. Traceback (most recent call last):
  978.   File "tests/hand-in_3_1.py", line 128, in test_remove_last_test
  979.     self.check(self.tc + [ 6, 3, 9, 10 ], self.td[:-1], [ self.td[2] ])
  980.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  981.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  982. AssertionError: False is not true :
  983.  
  984. -----
  985. error
  986. -----
  987.  
  988. Failed to find 'test id = 1, course name = Course 1, test name = Course 1 exam, date = 2015.12.07' in output.
  989.  
  990. -----
  991. input
  992. -----
  993.  
  994. 4
  995. Course 1
  996. Course 1 exam
  997. 2015.12.07
  998. 4
  999. Course 2
  1000. Course 2 exam
  1001. 2015.12.08
  1002. 4
  1003. Course 3
  1004. Course 3 exam
  1005. 2015.12.09
  1006. 6
  1007. 3
  1008. 9
  1009. 10
  1010.  
  1011. -----
  1012. output
  1013. -----
  1014.  
  1015. student id=1, name=Jon, email=jon@kanon.no
  1016.  
  1017. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  1018.  
  1019. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  1020.  
  1021.  
  1022.  
  1023. ======================================================================
  1024. FAIL: test_remove_test_result_first_student_first_test (__main__.Hand_In_3_1_Case)
  1025. ----------------------------------------------------------------------
  1026. Traceback (most recent call last):
  1027.   File "tests/hand-in_3_1.py", line 149, in test_remove_test_result_first_student_first_test
  1028.     self.check(self.sc + self.tc + self.trc + [ 8, 1, 1, 9, 10 ], self.sd + self.td + self.trd[1:], [ self.trd[0] ])
  1029.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  1030.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  1031. AssertionError: False is not true :
  1032.  
  1033. -----
  1034. error
  1035. -----
  1036.  
  1037. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  1038.  
  1039. -----
  1040. input
  1041. -----
  1042.  
  1043. 1
  1044. Student 1
  1045. student1@student.uia.no
  1046. 1
  1047. Student 2
  1048. student2@student.uia.no
  1049. 1
  1050. Student 3
  1051. student3@student.uia.no
  1052. 4
  1053. Course 1
  1054. Course 1 exam
  1055. 2015.12.07
  1056. 4
  1057. Course 2
  1058. Course 2 exam
  1059. 2015.12.08
  1060. 4
  1061. Course 3
  1062. Course 3 exam
  1063. 2015.12.09
  1064. 7
  1065. 1
  1066. 1
  1067. 1
  1068. 7
  1069. 1
  1070. 2
  1071. 2
  1072. 7
  1073. 1
  1074. 3
  1075. 3
  1076. 7
  1077. 2
  1078. 1
  1079. 4
  1080. 7
  1081. 2
  1082. 2
  1083. 5
  1084. 7
  1085. 2
  1086. 3
  1087. 6
  1088. 7
  1089. 3
  1090. 1
  1091. 7
  1092. 7
  1093. 3
  1094. 2
  1095. 8
  1096. 7
  1097. 3
  1098. 3
  1099. 9
  1100. 8
  1101. 1
  1102. 1
  1103. 9
  1104. 10
  1105.  
  1106. -----
  1107. output
  1108. -----
  1109.  
  1110. student id=1, name=Jon, email=jon@kanon.no
  1111.  
  1112. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  1113.  
  1114. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  1115.  
  1116.  
  1117.  
  1118. ======================================================================
  1119. FAIL: test_remove_test_result_first_student_last_test (__main__.Hand_In_3_1_Case)
  1120. ----------------------------------------------------------------------
  1121. Traceback (most recent call last):
  1122.   File "tests/hand-in_3_1.py", line 152, in test_remove_test_result_first_student_last_test
  1123.     self.check(self.sc + self.tc + self.trc + [ 8, 1, 3, 9, 10 ], self.sd + self.td + self.trd[:2] + self.trd[3:], [ self.trd[2] ])
  1124.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  1125.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  1126. AssertionError: False is not true :
  1127.  
  1128. -----
  1129. error
  1130. -----
  1131.  
  1132. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  1133.  
  1134. -----
  1135. input
  1136. -----
  1137.  
  1138. 1
  1139. Student 1
  1140. student1@student.uia.no
  1141. 1
  1142. Student 2
  1143. student2@student.uia.no
  1144. 1
  1145. Student 3
  1146. student3@student.uia.no
  1147. 4
  1148. Course 1
  1149. Course 1 exam
  1150. 2015.12.07
  1151. 4
  1152. Course 2
  1153. Course 2 exam
  1154. 2015.12.08
  1155. 4
  1156. Course 3
  1157. Course 3 exam
  1158. 2015.12.09
  1159. 7
  1160. 1
  1161. 1
  1162. 1
  1163. 7
  1164. 1
  1165. 2
  1166. 2
  1167. 7
  1168. 1
  1169. 3
  1170. 3
  1171. 7
  1172. 2
  1173. 1
  1174. 4
  1175. 7
  1176. 2
  1177. 2
  1178. 5
  1179. 7
  1180. 2
  1181. 3
  1182. 6
  1183. 7
  1184. 3
  1185. 1
  1186. 7
  1187. 7
  1188. 3
  1189. 2
  1190. 8
  1191. 7
  1192. 3
  1193. 3
  1194. 9
  1195. 8
  1196. 1
  1197. 3
  1198. 9
  1199. 10
  1200.  
  1201. -----
  1202. output
  1203. -----
  1204.  
  1205. student id=1, name=Jon, email=jon@kanon.no
  1206.  
  1207. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  1208.  
  1209. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  1210.  
  1211.  
  1212.  
  1213. ======================================================================
  1214. FAIL: test_remove_test_result_last_student_first_test (__main__.Hand_In_3_1_Case)
  1215. ----------------------------------------------------------------------
  1216. Traceback (most recent call last):
  1217.   File "tests/hand-in_3_1.py", line 155, in test_remove_test_result_last_student_first_test
  1218.     self.check(self.sc + self.tc + self.trc + [ 8, 3, 1, 9, 10 ], self.sd + self.td + self.trd[:6] + self.trd[7:], [ self.trd[6] ])
  1219.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  1220.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  1221. AssertionError: False is not true :
  1222.  
  1223. -----
  1224. error
  1225. -----
  1226.  
  1227. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  1228.  
  1229. -----
  1230. input
  1231. -----
  1232.  
  1233. 1
  1234. Student 1
  1235. student1@student.uia.no
  1236. 1
  1237. Student 2
  1238. student2@student.uia.no
  1239. 1
  1240. Student 3
  1241. student3@student.uia.no
  1242. 4
  1243. Course 1
  1244. Course 1 exam
  1245. 2015.12.07
  1246. 4
  1247. Course 2
  1248. Course 2 exam
  1249. 2015.12.08
  1250. 4
  1251. Course 3
  1252. Course 3 exam
  1253. 2015.12.09
  1254. 7
  1255. 1
  1256. 1
  1257. 1
  1258. 7
  1259. 1
  1260. 2
  1261. 2
  1262. 7
  1263. 1
  1264. 3
  1265. 3
  1266. 7
  1267. 2
  1268. 1
  1269. 4
  1270. 7
  1271. 2
  1272. 2
  1273. 5
  1274. 7
  1275. 2
  1276. 3
  1277. 6
  1278. 7
  1279. 3
  1280. 1
  1281. 7
  1282. 7
  1283. 3
  1284. 2
  1285. 8
  1286. 7
  1287. 3
  1288. 3
  1289. 9
  1290. 8
  1291. 3
  1292. 1
  1293. 9
  1294. 10
  1295.  
  1296. -----
  1297. output
  1298. -----
  1299.  
  1300. student id=1, name=Jon, email=jon@kanon.no
  1301.  
  1302. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  1303.  
  1304. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  1305.  
  1306.  
  1307.  
  1308. ======================================================================
  1309. FAIL: test_remove_test_result_last_student_last_test (__main__.Hand_In_3_1_Case)
  1310. ----------------------------------------------------------------------
  1311. Traceback (most recent call last):
  1312.   File "tests/hand-in_3_1.py", line 158, in test_remove_test_result_last_student_last_test
  1313.     self.check(self.sc + self.tc + self.trc + [ 8, 3, 3, 9, 10 ], self.sd + self.td + self.trd[:-1], [ self.trd[-1] ])
  1314.   File "/home/jon/Desktop/teacher-tests/tests/testtools.py", line 62, in check
  1315.     self.assertTrue(any(str(e) in s for s in response), getDetails("Failed to find '%s' in output." % (str(e)), input, response))
  1316. AssertionError: False is not true :
  1317.  
  1318. -----
  1319. error
  1320. -----
  1321.  
  1322. Failed to find 'student id = 1, name = Student 1, email = student1@student.uia.no' in output.
  1323.  
  1324. -----
  1325. input
  1326. -----
  1327.  
  1328. 1
  1329. Student 1
  1330. student1@student.uia.no
  1331. 1
  1332. Student 2
  1333. student2@student.uia.no
  1334. 1
  1335. Student 3
  1336. student3@student.uia.no
  1337. 4
  1338. Course 1
  1339. Course 1 exam
  1340. 2015.12.07
  1341. 4
  1342. Course 2
  1343. Course 2 exam
  1344. 2015.12.08
  1345. 4
  1346. Course 3
  1347. Course 3 exam
  1348. 2015.12.09
  1349. 7
  1350. 1
  1351. 1
  1352. 1
  1353. 7
  1354. 1
  1355. 2
  1356. 2
  1357. 7
  1358. 1
  1359. 3
  1360. 3
  1361. 7
  1362. 2
  1363. 1
  1364. 4
  1365. 7
  1366. 2
  1367. 2
  1368. 5
  1369. 7
  1370. 2
  1371. 3
  1372. 6
  1373. 7
  1374. 3
  1375. 1
  1376. 7
  1377. 7
  1378. 3
  1379. 2
  1380. 8
  1381. 7
  1382. 3
  1383. 3
  1384. 9
  1385. 8
  1386. 3
  1387. 3
  1388. 9
  1389. 10
  1390.  
  1391. -----
  1392. output
  1393. -----
  1394.  
  1395. student id=1, name=Jon, email=jon@kanon.no
  1396.  
  1397. test id = 1, course name = DAT220, test name= Exam, Date = 2015.12.14
  1398.  
  1399. student id = 1, course name = DAT220, test id= 1, test name = Exam, grade = A
  1400.  
  1401.  
  1402.  
  1403. ----------------------------------------------------------------------
  1404. Ran 26 tests in 0.042s
  1405.  
  1406. FAILED (failures=19)
  1407. scons: *** [test] Error 1
  1408. scons: building terminated because of errors.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top