diff options
author | ankitjavalkar | 2016-05-02 11:52:58 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-05-05 19:24:54 +0530 |
commit | 23b7abd3c1125e4c875e214e4f673c48c4bf4752 (patch) | |
tree | a76fccd392e054f33a3fc4bbd388c0aaa34bb40b /yaksh/tests.py | |
parent | b40b668bcecd01b3c7f9f16b87775770ba06a33a (diff) | |
download | online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.tar.gz online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.tar.bz2 online_test-23b7abd3c1125e4c875e214e4f673c48c4bf4752.zip |
Remove commented code and cleanup
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r-- | yaksh/tests.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py index 900a261..6e50fc5 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -107,11 +107,9 @@ class QuestionTestCases(unittest.TestCase): self.assertEqual(self.question1.summary, 'Demo question') self.assertEqual(self.question1.language, 'Python') self.assertEqual(self.question1.type, 'Code') - # self.assertFalse(self.question.options) self.assertEqual(self.question1.description, 'Write a function') self.assertEqual(self.question1.points, 1.0) self.assertTrue(self.question1.active) - # self.assertEqual(self.question.snippet, 'def myfunc()') tag_list = [] for tag in self.question1.tags.all(): tag_list.append(tag.name) @@ -150,27 +148,6 @@ class QuestionTestCases(unittest.TestCase): self.assertEqual(question_data.snippet, 'def fact()') ############################################################################### -# class TestCaseTestCases(unittest.TestCase): -# def setUp(self): -# self.question = Question(summary='Demo question', language='Python', -# type='Code', active=True, -# description='Write a function', points=1.0, -# snippet='def myfunc()') -# self.question.save() -# self.testcase = TestCase(question=self.question, -# func_name='def myfunc', kw_args='a=10,b=11', -# pos_args='12,13', expected_answer='15') - -# def test_testcase(self): -# """ Test question """ -# self.assertEqual(self.testcase.question, self.question) -# self.assertEqual(self.testcase.func_name, 'def myfunc') -# self.assertEqual(self.testcase.kw_args, 'a=10,b=11') -# self.assertEqual(self.testcase.pos_args, '12,13') -# self.assertEqual(self.testcase.expected_answer, '15') - - -############################################################################### class QuizTestCases(unittest.TestCase): def setUp(self): self.quiz1 = Quiz.objects.get(pk=1) |