#NEWLINE# def test_get_app_version_channel( self ) : #NEWLINE# #INDENT# userid = '{D0BBD725-742D-44ae-8D46-0231E881D58E}' #NEWLINE# channel_beta = Channel . objects . create ( name = 'beta' ) #NEWLINE# version = VersionFactory . create ( file = SimpleUploadedFile ( './chrome_installer.exe' , b'' ) ) #NEWLINE# version_beta = Version . objects . create ( file = SimpleUploadedFile ( './chrome_installer.exe' , b'' ) , app = version . app , platform = version . platform , channel = channel_beta , version = '39.0.0.0' ) #NEWLINE# self . assertEqual ( version_beta , get_version ( version . app . pk , version . platform . name , userid . name , '' , userid ) )