<s> import mock <EOL> from solum . tests import base <EOL> from solum . tests import fakes <EOL> from solum . tests import utils <EOL> import solum . uploaders . local as uploader <EOL> class LocalStorageTest ( base . BaseTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( LocalStorageTest , self ) . setUp ( ) <EOL> def test_upload ( self ) : <EOL> ctxt = utils . dummy_context ( ) <EOL> orig_path = "<STR_LIT>" <EOL> assembly = fakes . FakeAssembly ( ) <EOL> build_id = "<STR_LIT>" <EOL> localstorage = uploader . LocalStorage ( ctxt , orig_path , <EOL> assembly , build_id , <EOL> "<STR_LIT>" ) <EOL> localstorage . write_userlog_row = mock . MagicMock ( ) <EOL> localstorage . upload_log ( ) <EOL> localstorage . write_userlog_row . assert_called_once_with ( orig_path ) </s>
