Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F56560452
test_addVersion.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Mar 29, 02:45
Size
1 KB
Mime Type
text/x-python
Expires
Sun, Mar 31, 03:45 (2 d)
Engine
blob
Format
Raw Data
Handle
16733463
Attached To
rSPNDISTRIBUTIONVERSIONS spnDistributionVersions
test_addVersion.py
View Options
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" this program can be used to test addVersion.py.
"""
# Copyright (C) University of Basel 2021 {{{1
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/> 1}}}
__author__
=
"Christian Steiner"
__maintainer__
=
__author__
__copyright__
=
'University of Basel'
__email__
=
"christian.steiner@unibas.ch"
__status__
=
"Development"
__license__
=
"GPL v3"
__version__
=
"0.0.1"
import
getopt
import
json
import
os
from
os
import
listdir
,
sep
,
path
,
setpgrp
,
devnull
from
os.path
import
exists
,
isfile
,
isdir
,
dirname
,
basename
import
unittest
import
addVersion
class
TestAddVersion
(
unittest
.
TestCase
):
def
testAdd
(
self
):
addVersion
.
add_version
(
'asdf.json'
,
'1.0'
,
'Version'
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Event Timeline
Log In to Comment