#NEWLINE# def test_to_xml_method_with_optimized_clips_is_working_properly( self ) : #NEWLINE# #INDENT# 'testing if the to xml method is working properly with the clips are\n        optimized\n        ' #NEWLINE# t = Track ( ) #NEWLINE# t . enabled = True #NEWLINE# t . locked = False #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# t . clips . append ( c ) #NEWLINE# f = File ( ) #NEWLINE# f . duration = 30 #NEWLINE# f . name = 'shot' #NEWLINE# f . pathurl = 'file://localhost/home/eoyilmaz/maya/projects/default/data/shot2.mov' #NEWLINE# c = Clip ( ) #NEWLINE# c . id = 'shot2' #NEWLINE# c . start = 35 #NEWLINE# c . end = 65 #NEWLINE# c . name = 'shot2' #NEWLINE# c . enabled = True #NEWLINE# c . duration = 30 #NEWLINE# c . in_ = 0 #NEWLINE# c . out = 30 #NEWLINE# c . file = f #NEWLINE# t . clips . append ( c ) #NEWLINE# f = File ( ) #NEWLINE# f . duration = 45 #NEWLINE# f . name = 'shot1' #NEWLINE# f . pathurl = 'file://localhost/home/eoyilmaz/maya/projects/default/data/shot1.mov' #NEWLINE# c = Clip ( ) #NEWLINE# c . id = 'shot1' #NEWLINE# c . start = 65 #NEWLINE# c . end = 110 #NEWLINE# c . name = 'shot1' #NEWLINE# c . enabled = True #NEWLINE# c . duration = 45 #NEWLINE# c . in_ = 0 #NEWLINE# c . out = 45 #NEWLINE# c . file = f #NEWLINE# t . clips . append ( c ) #NEWLINE# expected_xml = '<track>\n  <locked>FALSE</locked>\n  <enabled>TRUE</enabled>\n  <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>\n  <clipitem id="shot2 2">\n    <end>65</end>\n    <name>shot2</name>\n    <enabled>True</enabled>\n    <start>35</start>\n    <in>0</in>\n    <duration>30</duration>\n    <out>30</out>\n    <file id="shot2.mov"/>\n  </clipitem>\n  <clipitem id="shot1">\n    <end>110</end>\n    <name>shot1</name>\n    <enabled>True</enabled>\n    <start>65</start>\n    <in>0</in>\n    <duration>45</duration>\n    <out>45</out>\n    <file id="shot1.mov">\n      <duration>45</duration>\n      <name>shot1</name>\n      <pathurl>file://localhost/home/eoyilmaz/maya/projects/default/data/shot1.mov</pathurl>\n    </file>\n  </clipitem>\n</track>' #NEWLINE# t . optimize_clips ( ) #NEWLINE# self . assertEqual ( expected_xml , t . to_xml ( ) )