You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/test_test_comp.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ def test_fail_3(self):
39
39
self.data["DC_CODE"] ="[a + str(b) for a,b in x.items()]"
40
40
sct_payload=helper.run(self.data)
41
41
self.assertFalse(sct_payload['correct'])
42
-
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first list comprehension? Make sure you use the correct names!")
42
+
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first list comprehension? Be sure to use the correct names.")
self.assertEqual("Have you used the correct iterator variables in the first dictionary comprehension? Make sure you use the correct names!", sct_payload['message'])
337
+
self.assertEqual("Have you used the correct iterator variables in the first dictionary comprehension? Be sure to use the correct names.", sct_payload['message'])
self.data["DC_CODE"] ="(a + str(b) for a,b in x.items())"
420
420
sct_payload=helper.run(self.data)
421
421
self.assertFalse(sct_payload['correct'])
422
-
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first generator expression? Make sure you use the correct names!")
422
+
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first generator expression? Be sure to use the correct names.")
Copy file name to clipboardExpand all lines: tests/test_test_lambda_function.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ def test_fail_8(self):
68
68
self.data["DC_CODE"] ="echo_word = lambda word, echo = 1: word * int(echo)"
69
69
sct_payload=helper.run(self.data)
70
70
self.assertFalse(sct_payload['correct'])
71
-
self.assertEqual(sct_payload['message'], "Check your definition of the first lambda function. Calling it with arguments <code>('a', '2')</code> doesn't result in an error, but it should!")
71
+
self.assertEqual(sct_payload['message'], "Check your definition of the first lambda function. Calling it with arguments <code>('a', '2')</code> doesn't result in an error, but it should.")
0 commit comments