Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
bf2c3650
Commit
bf2c3650
authored
Aug 25, 2020
by
payno
Browse files
remove some warnings: use assertEqual instead of assertEquals
parent
ee14be01
Changes
1
Show whitespace changes
Inline
Side-by-side
tomoscan/esrf/test/test_hdf5scan.py
View file @
bf2c3650
...
...
@@ -81,7 +81,7 @@ class TestHDF5Scan(HDF5TestBaseClass):
url_1
=
proj_angles
[
0
]
self
.
assertTrue
(
url_1
.
is_valid
())
self
.
assertTrue
(
url_1
.
is_absolute
())
self
.
assertEqual
s
(
url_1
.
scheme
(),
'silx'
)
self
.
assertEqual
(
url_1
.
scheme
(),
'silx'
)
# check conversion to dict
_dict
=
self
.
scan
.
to_dict
()
scan2
=
HDF5TomoScan
.
from_dict
(
_dict
)
...
...
@@ -180,10 +180,10 @@ class TestHDF5Scan(HDF5TestBaseClass):
self
.
assertEqual
(
self
.
scan
.
tomo_n
,
1500
)
radios_urls_evolution
=
self
.
scan
.
get_proj_angle_url
()
self
.
assertEqual
s
(
len
(
radios_urls_evolution
),
1503
)
self
.
assertEqual
s
(
radios_urls_evolution
[
0
].
file_path
(),
self
.
scan
.
master_file
)
self
.
assertEqual
s
(
radios_urls_evolution
[
0
].
data_slice
(),
22
)
self
.
assertEqual
s
(
radios_urls_evolution
[
0
].
data_path
(),
'entry0000/instrument/detector/data'
)
self
.
assertEqual
(
len
(
radios_urls_evolution
),
1503
)
self
.
assertEqual
(
radios_urls_evolution
[
0
].
file_path
(),
self
.
scan
.
master_file
)
self
.
assertEqual
(
radios_urls_evolution
[
0
].
data_slice
(),
22
)
self
.
assertEqual
(
radios_urls_evolution
[
0
].
data_path
(),
'entry0000/instrument/detector/data'
)
def
testDarkRefUtils
(
self
):
self
.
assertEqual
(
self
.
scan
.
tomo_n
,
1500
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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