Example #1
0
 def test_check_answer_for_datatypes(self):
     check, answer = check_answer('datatypes', 'split', 'S.split')
     self.assertTrue(check)
     self.assertEqual(answer, 'split')
Example #2
0
 def test_check_answer_returns_true_for_correct_answer(self):
     check, answer = check_answer('modules', 'split', 'split')
     self.assertTrue(check)
     self.assertEqual(answer, 'split')
Example #3
0
 def test_check_answer_returns_tuple(self):
     res = check_answer('modules', 'some_answer', 'answer')
     self.assertIsInstance(res, tuple)
Example #4
0
 def test_check_answer_for_datatypes(self):
     check, answer = check_answer('datatypes', 'split', 'S.split')
     self.assertTrue(check)
     self.assertEqual(answer, 'split')
Example #5
0
 def test_check_answer_returns_true_for_correct_answer(self):
     check, answer = check_answer('modules', 'split', 'split')
     self.assertTrue(check)
     self.assertEqual(answer, 'split')
Example #6
0
 def test_check_answer_returns_tuple(self):
     res = check_answer('modules', 'some_answer', 'answer')
     self.assertIsInstance(res, tuple)