forked from larymak/Python-project-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz_tests.py
25 lines (19 loc) · 835 Bytes
/
quiz_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import unittest
from hacktoberfest_quiz import Quiz
class TestQuiz(unittest.TestCase):
def test_correct_answer_to_question_one(self):
quiz = Quiz()
self.assertTrue(quiz.validate_question_one('python'))
def test_correct_answer_to_question_two(self):
quiz = Quiz()
self.assertTrue(quiz.validate_question_two('application of engineering principle to the design a software'))
def test_correct_answer_to_question_three(self):
quiz = Quiz()
self.assertTrue(quiz.validate_question_three('software development life cycle'))
def test_correct_answer_to_question_four(self):
quiz = Quiz()
self.assertTrue(quiz.validate_question_four('requirement ananlysis'))
def test_correct_score(self):
pass
if __name__ == "__main__":
unittest.main()