#NEWLINE# def test_from_xml_method_is_working_properly( self ) : #NEWLINE# #INDENT# 'testing if the from_xml() method is working properly\n        ' #NEWLINE# r = Rate ( timebase = '24' , ntsc = False ) #NEWLINE# from xml.etree import ElementTree #NEWLINE# rate_node = ElementTree . Element ( 'rate' ) #NEWLINE# timebase_node = ElementTree . SubElement ( rate_node , 'timebase' ) #NEWLINE# timebase_node . text = '25' #NEWLINE# ntsc_node = ElementTree . SubElement ( self , 'ntsc' ) #NEWLINE# ntsc_node . text = 'TRUE' #NEWLINE# r . from_xml ( rate_node ) #NEWLINE# self . assertEqual ( r . timebase , '25' ) #NEWLINE# self . assertEqual ( r . ntsc , True )