-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlessonplan_testing.py
79 lines (63 loc) · 2.28 KB
/
lessonplan_testing.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 24 14:52:25 2015
@author: Jamie
"""
TITLE = 'lessonplan testing'
VERSION = '0.0.1'
AUTHOR = 'Jamie E Paton'
TEST = 0
import sys
import logging
import unittest
import hypothesis as hs
def main(args):
# Define learning objectives
cw1 = CommandWord('describe', 'knowledge')
cw2 = CommandWord('explain', 'understanding')
cw3 = CommandWord('suggest', 'evaluation')
lo1 = LearningObjective(cw1, 'the structure', context='of the national grid')
lo2 = LearningObjective(cw2, 'the dangers', context='of mains electricity')
lo3 = LearningObjective(cw3, 'safety measures', context='to protect from electrocution')
content = LessonContent(4, 'physics', 'P2.4.2', 'physics at home', 'DC electricity', 'AC electricity', 'The National Grid', 'How do we get electricity?', 1)
act1 = Activity(title = 'exam question',
category = 'exam technique',
teacher_activity = None,
pupil_activity = 'attempt to answer exam question from a previous paper',
pupil_learning = 'consolidation of previous learning',
assessment_for_learning = None,
differentiation = None,
directions = None,
notes = None,
length = '10 minutes',
risk_assessment = None,
resources = None,
order = 3)
teaching = LessonTeaching([lo1, lo2, lo3], [act1])
logistics = LessonLogistics('7K5', time.mktime(dt.datetime.today().timetuple()), '10')
lesson = LessonPlan(content, teaching, logistics)
print lesson
# lnn = js.encode(lesson)
# js.encode()
# json.dumps()
# print type(js.decode(lnn)
# save_lesson(lnn, 'testing2.json')
# lesson = load_lesson('P2.4.2 The National Grid L1.json')
# lesson = load_lesson2('testing.json')
#print lesson
return None
class Testing(unittest.TestCase):
"""
Methods
-------
Notes
-----
@given(parameter=hs.strategies.integers())
def test_something(parameter):
assert type(parameter) == int
"""
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info(''.join([TITLE, ' v', VERSION, ' ', AUTHOR]))
sys.exit(main(sys.argv))