add new test data with draft content
This commit is contained in:
2
common/test/data/simple_with_draft/README.md
Normal file
2
common/test/data/simple_with_draft/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
This is a simple, but non-trivial, course using multiple module types and some nested structure.
|
||||
|
||||
31
common/test/data/simple_with_draft/course.xml
Normal file
31
common/test/data/simple_with_draft/course.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<course name="A Simple Course" org="edX" course="simple_with_draft" graceperiod="1 day 5 hours 59 minutes 59 seconds" slug="2012_Fall">
|
||||
<chapter name="Overview">
|
||||
<video name="Welcome" youtube_id_0_75="izygArpw-Qo" youtube_id_1_0="p2Q6BrNhdh8" youtube_id_1_25="1EeWXzPdhSA" youtube_id_1_5="rABDYkeK0x8"/>
|
||||
<videosequence format="Lecture Sequence" name="A simple sequence">
|
||||
<html name="toylab" filename="toylab"/>
|
||||
<video name="S0V1: Video Resources" youtube_id_0_75="EuzkdzfR0i8" youtube_id_1_0="1bK-WdDi6Qw" youtube_id_1_25="0v1VzoDVUTM" youtube_id_1_5="Bxk_-ZJb240"/>
|
||||
</videosequence>
|
||||
<section name="Lecture 2">
|
||||
<sequential>
|
||||
<video youtube_id_1_0="TBvX7HzxexQ"/>
|
||||
<problem name="L1 Problem 1" points="1" type="lecture" showanswer="attempted" filename="L1_Problem_1" rerandomize="never"/>
|
||||
</sequential>
|
||||
</section>
|
||||
</chapter>
|
||||
<chapter name="Chapter 2" url_name='chapter_2'>
|
||||
<section name="Problem Set 1">
|
||||
<sequential>
|
||||
<problem type="lecture" showanswer="attempted" rerandomize="true" display_name="A simple coding problem" name="Simple coding problem" filename="ps01-simple" url_name="ps01-simple"/>
|
||||
</sequential>
|
||||
</section>
|
||||
<video name="Lost Video" youtube_id_1_0="TBvX7HzxexQ"/>
|
||||
<sequential format="Lecture Sequence" url_name='test_sequence'>
|
||||
<vertical url_name='test_vertical'>
|
||||
<html url_name='test_html'>
|
||||
Foobar
|
||||
</html>
|
||||
</vertical>
|
||||
</sequential>
|
||||
</chapter>
|
||||
|
||||
</course>
|
||||
@@ -0,0 +1,5 @@
|
||||
<vertical url_name='test_vertical' parent_sequential_url='i4x://edX/simple_with_draft/sequential/test_sequence' index_in_children_list="0">
|
||||
<html url_name='test_html'>
|
||||
Foobar - edit in draft
|
||||
</html>
|
||||
</vertical>
|
||||
3
common/test/data/simple_with_draft/html/toylab.html
Normal file
3
common/test/data/simple_with_draft/html/toylab.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<b>Lab 2A: Superposition Experiment</b>
|
||||
|
||||
<p>Isn't the toy course great?</p>
|
||||
43
common/test/data/simple_with_draft/problem/L1_Problem_1.xml
Normal file
43
common/test/data/simple_with_draft/problem/L1_Problem_1.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0"?>
|
||||
<problem>
|
||||
<p>
|
||||
<h1>Finger Exercise 1</h1>
|
||||
</p>
|
||||
<p>
|
||||
Here are two definitions: </p>
|
||||
<ol class="enumerate">
|
||||
<li>
|
||||
<p>
|
||||
Declarative knowledge refers to statements of fact. </p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Imperative knowledge refers to 'how to' methods. </p>
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
Which of the following choices is correct? </p>
|
||||
<ol class="enumerate">
|
||||
<li>
|
||||
<p>
|
||||
Statement 1 is true, Statement 2 is false </p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Statement 1 is false, Statement 2 is true </p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Statement 1 and Statement 2 are both false </p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Statement 1 and Statement 2 are both true </p>
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
<symbolicresponse answer="4">
|
||||
<textline size="90" math="1"/>
|
||||
</symbolicresponse>
|
||||
</p>
|
||||
</problem>
|
||||
62
common/test/data/simple_with_draft/problem/ps01-simple.xml
Normal file
62
common/test/data/simple_with_draft/problem/ps01-simple.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<problem><style media="all" type="text/css"/>
|
||||
<text><h2>Paying Off Credit Card Debt</h2>
|
||||
<p> Each month, a credit
|
||||
card statement will come with the option for you to pay a
|
||||
minimum amount of your charge, usually 2% of the balance due.
|
||||
However, the credit card company earns money by charging
|
||||
interest on the balance that you don't pay. So even if you
|
||||
pay credit card payments on time, interest is still accruing
|
||||
on the outstanding balance.</p>
|
||||
<p >Say you've made a
|
||||
$5,000 purchase on a credit card with 18% annual interest
|
||||
rate and 2% minimum monthly payment rate. After a year, how
|
||||
much is the remaining balance? Use the following
|
||||
equations.</p>
|
||||
<blockquote>
|
||||
<p><strong>Minimum monthly payment</strong>
|
||||
= (Minimum monthly payment rate) x (Balance)<br/>
|
||||
(Minimum monthly payment gets split into interest paid and
|
||||
principal paid)<br/>
|
||||
<strong>Interest Paid</strong> = (Annual interest rate) / (12
|
||||
months) x (Balance)<br/>
|
||||
<strong>Principal paid</strong> = (Minimum monthly payment) -
|
||||
(Interest paid)<br/>
|
||||
<strong>Remaining balance</strong> = Balance - (Principal
|
||||
paid)</p>
|
||||
</blockquote>
|
||||
<p >For month 1, compute the minimum monthly payment by taking 2% of the balance.</p>
|
||||
<blockquote xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">
|
||||
<p><strong>Minimum monthly payment</strong>
|
||||
= .02 x $5000 = $100</p>
|
||||
<p>We can't simply deduct this from the balance because
|
||||
there is compounding interest. Of this $100 monthly
|
||||
payment, compute how much will go to paying off interest
|
||||
and how much will go to paying off the principal. Remember
|
||||
that it's the annual interest rate that is given, so we
|
||||
need to divide it by 12 to get the monthly interest
|
||||
rate.</p>
|
||||
<p><strong>Interest paid</strong> = .18/12 x $5000 =
|
||||
$75<br/>
|
||||
<strong>Principal paid</strong> = $100 - $75 = $25</p>
|
||||
<p>The remaining balance at the end of the first month will
|
||||
be the principal paid this month subtracted from the
|
||||
balance at the start of the month.</p>
|
||||
<p><strong>Remaining balance</strong> = $5000 - $25 =
|
||||
$4975</p>
|
||||
</blockquote>
|
||||
<p xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">For month 2, we
|
||||
repeat the same steps.</p>
|
||||
<blockquote xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">
|
||||
<p><strong>Minimum monthly payment</strong>
|
||||
= .02 x $4975 = $99.50<br/>
|
||||
<strong>Interest Paid</strong> = .18/12 x $4975 =
|
||||
$74.63<br/>
|
||||
<strong>Principal Paid</strong> = $99.50 - $74.63 =
|
||||
$24.87<br/>
|
||||
<strong>Remaining Balance</strong> = $4975 - $24.87 =
|
||||
$4950.13</p>
|
||||
</blockquote>
|
||||
<p xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">After 12 months, the
|
||||
total amount paid is $1167.55, leaving an outstanding balance
|
||||
of $4708.10. Pretty depressing!</p>
|
||||
</text></problem>
|
||||
Reference in New Issue
Block a user