#NEWLINE# def test_get_app_version_exlude_new_users( self ) : #NEWLINE# #INDENT# userid = ( '{%s}' % UUID ( int = 1 ) ) #NEWLINE# userid_beta = ( '{%s}' % UUID ( int = 40 ) ) #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 = version . channel , version = '39.0.0.0' ) #NEWLINE# PartialUpdate . objects . create ( version = version_beta , percent = 5 , start_date = datetime . now ( ) , end_date = datetime . now ( ) , active_users = ACTIVE_USERS_DICT_CHOICES [ 'all' ] ) #NEWLINE# self . assertEqual ( version , get_version ( version . app . pk , version . platform . name , version . channel . name , '36.0.2062.124' , userid ) ) #NEWLINE# self . assertEqual ( version_beta , get_version ( version . app . pk , version . platform . name , version . channel . name , '36.0.2062.124' , userid_beta ) ) #NEWLINE# self . assertEqual ( version_beta , get_version ( version . app . pk , version . platform . name , version . channel . name , '' , userid_beta ) )