Skip to content
GitLab
Explore
Sign in
Register
Commit
4b13d163
authored
8 years ago
by
Nicolas Dandrimont
Browse files
Options
Downloads
Patches
Plain Diff
test_identifiers: add test for negative UTC
parent
a09e9b44
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/model/tests/test_identifiers.py
+26
-0
26 additions, 0 deletions
swh/model/tests/test_identifiers.py
with
26 additions
and
0 deletions
swh/model/tests/test_identifiers.py
+
26
−
0
View file @
4b13d163
...
...
@@ -522,6 +522,25 @@ o6X/3T+vm8K3bf3driRr34c=
'
message
'
:
b
''
,
}
self
.
release_negative_utc
=
{
'
id
'
:
'
97c8d2573a001f88e72d75f596cf86b12b82fd01
'
,
'
name
'
:
b
'
20081029
'
,
'
target
'
:
'
54e9abca4c77421e2921f5f156c9fe4a9f7441c7
'
,
'
target_type
'
:
'
revision
'
,
'
date
'
:
{
'
timestamp
'
:
1225281976.0
,
'
offset
'
:
0
,
'
negative_utc
'
:
True
,
},
'
author
'
:
{
'
name
'
:
b
'
Otavio Salvador
'
,
'
email
'
:
b
'
otavio@debian.org
'
,
'
id
'
:
17640
,
},
'
synthetic
'
:
False
,
'
message
'
:
b
'
tagging version 20081029
\n\n
r56558
\n
'
,
}
@istest
def
release_identifier
(
self
):
self
.
assertEqual
(
...
...
@@ -549,3 +568,10 @@ o6X/3T+vm8K3bf3driRr34c=
identifiers
.
release_identifier
(
self
.
release_empty_message
),
identifiers
.
identifier_to_str
(
self
.
release_empty_message
[
'
id
'
])
)
@istest
def
release_identifier_negative_utc
(
self
):
self
.
assertEqual
(
identifiers
.
release_identifier
(
self
.
release_negative_utc
),
identifiers
.
identifier_to_str
(
self
.
release_negative_utc
[
'
id
'
])
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment