Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
4ab689d6
Commit
4ab689d6
authored
Nov 24, 2015
by
eric pellegrini
Browse files
Updated the ElementsDatabase unit test
parent
9468b150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tests/UnitTests/TestElementsDatabase.py
View file @
4ab689d6
...
...
@@ -50,7 +50,7 @@ class TestElementsDatabase(UnitTest):
def
test___contains__
(
self
):
self
.
assertFalse
(
"fhsdjfsd"
in
ELEMENTS
)
self
.
assert
Fals
e
(
"h"
in
ELEMENTS
)
self
.
assert
Tru
e
(
"h"
in
ELEMENTS
)
self
.
assertTrue
(
"H"
in
ELEMENTS
)
def
test___getitem__
(
self
):
...
...
@@ -75,9 +75,6 @@ class TestElementsDatabase(UnitTest):
def
test_add_element
(
self
):
# Adding an already existing element does not trigger an error anymore
self
.
assertRaises
(
ElementsDatabaseError
,
ELEMENTS
.
add_element
,
"H"
)
# Otherwise, everything should be OK
self
.
assertNotRaises
(
ELEMENTS
.
add_element
,
"element1"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment