def get_dummy_course(start, announcement=None, is_new=None, advertised_start=None, end=None, certs='end'):
 system = DummySystem(load_error_modules=True)
 def to_attrb(n, v):
  return ('' if (v is None) else '{0}="{1}"'.format(n, v).lower())
 is_new = to_attrb('is_new', is_new)
 announcement = to_attrb('announcement', announcement)
 advertised_start = to_attrb('advertised_start', advertised_start)
 end = to_attrb('end', end)
 start_xml = '\n         <course org="{org}" course="{course}" display_organization="{org}_display" display_coursenumber="{course}_display"\n                graceperiod="1 day" url_name="test"\n                start="{start}"\n                {announcement}\n                {is_new}\n                {advertised_start}\n                {end}\n                certificates_display_behavior="{certs}">\n            <chapter url="hi" url_name="ch" display_name="CH">\n                <html url_name="h" display_name="H">Two houses, ...</html>\n            </chapter>\n         </course>\n     '.format(org=ORG, course=COURSE, start=start, is_new=is_new, announcement=announcement, advertised_start=advertised_start, end=end, certs=certs)
 return system.process_xml(start_xml)

def get_dummy_course ( start , announcement = None , is_new = None , advertised_start = None , end = None , certs = 'end' ) : system = DummySystem ( load_error_modules = True ) def to_attrb ( n , v ) : return ( '' if ( v is None ) else '{0}="{1}"' . format ( n , v ) . lower ( ) ) is_new = to_attrb ( 'is_new' , is_new ) announcement = to_attrb ( 'announcement' , announcement ) advertised_start = to_attrb ( 'advertised_start' , advertised_start ) end = to_attrb ( 'end' , end ) start_xml = '\n         <course org="{org}" course="{course}" display_organization="{org}_display" display_coursenumber="{course}_display"\n                graceperiod="1 day" url_name="test"\n                start="{start}"\n                {announcement}\n                {is_new}\n                {advertised_start}\n                {end}\n                certificates_display_behavior="{certs}">\n            <chapter url="hi" url_name="ch" display_name="CH">\n                <html url_name="h" display_name="H">Two houses, ...</html>\n            </chapter>\n         </course>\n     ' . format ( org = ORG , course = COURSE , start = start , is_new = is_new , announcement = announcement , advertised_start = advertised_start , end = end , certs = certs ) return system . process_xml ( start_xml )
get a dummy course .