Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
7048eca5
Commit
7048eca5
authored
May 17, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[slapos.collect] Use set for list comparation
parent
2476182b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/tests/collect.py
slapos/tests/collect.py
+3
-3
No files found.
slapos/tests/collect.py
View file @
7048eca5
...
...
@@ -227,8 +227,8 @@ class TestCollectReport(unittest.TestCase):
'%s/1983-01-10/dump_user.csv'
%
self
.
instance_root
,
'%s/1983-01-10/dump_system.csv'
%
self
.
instance_root
]
self
.
assertEquals
(
glob
.
glob
(
"%s/1983-01-10/*.csv"
%
self
.
instance_root
),
csv_path_list
)
self
.
assertEquals
(
set
(
glob
.
glob
(
"%s/1983-01-10/*.csv"
%
self
.
instance_root
)),
set
(
csv_path_list
)
)
def
test_system_csv_report
(
self
):
database
=
db
.
Database
(
self
.
instance_root
)
...
...
@@ -256,7 +256,7 @@ class TestCollectReport(unittest.TestCase):
'%s/system_net_in_dropped.csv'
%
self
.
instance_root
,
'%s/system_loadavg.csv'
%
self
.
instance_root
]
self
.
assertEquals
(
glob
.
glob
(
"%s/*.csv"
%
self
.
instance_root
),
csv_path_list
)
self
.
assertEquals
(
set
(
glob
.
glob
(
"%s/*.csv"
%
self
.
instance_root
)),
set
(
csv_path_list
)
)
class
TestCollectSnapshot
(
unittest
.
TestCase
):
...
...
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