#NEWLINE# def test_to_xml_method_is_working_properly( self ) : #NEWLINE# #INDENT# 'testing if the to xml method is working properly\n        ' #NEWLINE# f = File ( ) #NEWLINE# f . duration = 34 #NEWLINE# f . name = 'shot2' #NEWLINE# f . pathurl = 'file://localhost/home/eoyilmaz/maya/projects/default/data/shot2.mov' #NEWLINE# c = Clip ( ) #NEWLINE# c . id = 'shot2' #NEWLINE# c . start = 1 #NEWLINE# c . end = 35 #NEWLINE# c . name = 'shot2' #NEWLINE# c . enabled = True #NEWLINE# c . duration = 34 #NEWLINE# c . in_ = 0 #NEWLINE# c . out = 34 #NEWLINE# c . file = f #NEWLINE# expected_xml = '<clipitem id="shot2">\n  <end>35</end>\n  <name>shot2</name>\n  <enabled>True</enabled>\n  <start>1</start>\n  <in>0</in>\n  <duration>34</duration>\n  <out>34</out>\n  <file id="shot2.mov">\n    <duration>34</duration>\n    <name>shot2</name>\n    <pathurl>file://localhost/home/eoyilmaz/maya/projects/default/data/shot2.mov</pathurl>\n  </file>\n</clipitem>' #NEWLINE# self . assertEqual ( expected_xml , c . to_xml ( ) )