Exemplo n.º 1
0
    def test_file_upload_method_proxy_calls_android_helper_method(self, mock_upload_android):
        device_state.device_type = Android

        upload(['/foo', '/bar'])

        self.assertTrue(mock_upload_android.called)
Exemplo n.º 2
0
    def test_file_upload_method_proxy_calls_ios_helper_method(self, mock_upload_ios):
        device_state.device_type = Ios

        upload(['/foo', '/bar'])

        self.assertTrue(mock_upload_ios.called)