@@ -12,25 +12,25 @@ def test_get_user_information(self):
1212 self .assertTrue (self .tb .user .get_user_information ()['first_name' ])
1313
1414 def test_upload_file (self ):
15- response = self .tb .storage .upload_local_file ("./tests/resources/sample.apk" )
16- self .assertTrue (response .get ("app_url" ) != None )
15+ response = self .tb .storage .upload_local_file ("./tests/resources/sample.apk" )
16+ self .assertTrue (response .get ("app_url" ) != None )
1717
1818 def test_upload_remote_file (self ):
1919 response = self .tb .storage .upload_remote_file ("https://testingbot.com/appium/sample.apk" )
2020 self .assertTrue (response .get ("app_url" ) != None )
2121
2222 def test_upload_and_delete_file (self ):
23- files = self .tb .storage .get_stored_files ()
24- current_count = files .get ("meta" ).get ("total" )
25- response = self .tb .storage .upload_local_file ("./tests/resources/sample.apk" )
26- app_url = response .get ("app_url" )
27- meta_data = self .tb .storage .get_stored_file (app_url )
28- self .assertEqual (meta_data .get ("app_url" ), app_url )
23+ files = self .tb .storage .get_stored_files ()
24+ current_count = files .get ("meta" ).get ("total" )
25+ response = self .tb .storage .upload_local_file ("./tests/resources/sample.apk" )
26+ app_url = response .get ("app_url" )
27+ meta_data = self .tb .storage .get_stored_file (app_url )
28+ self .assertEqual (meta_data .get ("app_url" ), app_url )
2929
30- files = self .tb .storage .get_stored_files ()
31- self .assertEqual (files .get ("meta" ).get ("total" ), current_count + 1 )
30+ files = self .tb .storage .get_stored_files ()
31+ self .assertEqual (files .get ("meta" ).get ("total" ), current_count + 1 )
3232
33- self .tb .storage .remove_file (app_url )
33+ self .tb .storage .remove_file (app_url )
3434
3535 try :
3636 self .tb .storage .get_stored_file (app_url )
0 commit comments