Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit cb79c50

Browse files
committed
Add task for getting zone
1 parent d2e604c commit cb79c50

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

.idea/study_project.xml

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lesson7/task1/task.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<html>
2+
Write your task text here.
3+
<br>
4+
</html>

lesson7/task1/task.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from robot import Robot
2+
3+
robot = Robot()
4+
5+
zone = robot.zone

lesson7/task1/tests.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from test_helper import run_common_tests, failed, passed, import_task_file
2+
3+
def test_zone():
4+
task = import_task_file()
5+
zone = task.zone
6+
if zone == 1:
7+
return passed()
8+
return failed("Incorrect zone")
9+
10+
if __name__ == '__main__':
11+
run_common_tests()
12+
test_zone()
13+
14+

0 commit comments

Comments
 (0)