You should see some output when running the commands. Sample code:
[[[
import subprocess
subprocess.call(["svnadmin", "create", "mytestrepo"])
subprocess.call(["svn", "checkout", "file:///users/bahrep/mytestrepo", "myworkingcopy"])
with open("/users/bahrep/myworkingcopy/mytextfile.txt", "w") as myfile:
myfile.write('File content')
subprocess.call(["svn", "add", "/users/bahrep/myworkingcopy/mytextfile.txt"])
subprocess.call(["svn", "commit", "-m", "My test log message", "/users/bahrep/myworkingcopy/"])
]]]
Creates a new local repository,
Checks out a working copy,
Creates a new file into the working copy and adds it to Subversion,
Commits this change.
Output:
[[[
Checked out revision 0.
A /users/bahrep/myworkingcopy/mytextfile.txt
Adding users/bahrep/myworkingcopy/mytextfile.txt
Transmitting file data .done
Committing transaction...
Committed revision 1.
]]]
PS I'm not a Python expert.