Skip to content

Commit

Permalink
Update unittest for graph with sections
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Aug 16, 2017
1 parent 347dad2 commit 349d5c7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ def setUpClass(cls):
files:
- "/usr/lib/2_one.so"
- "/etc/2_two.cfg"
meta: {"section": "libs"}
- name: python
version: "2.7"
size: 5000000
packfiles: true
files:
- "/usr/bin/python"
meta: {"section": "python"}
- name: unused
version: "0.1"
size: 100
Expand Down Expand Up @@ -258,12 +260,15 @@ def test_simple(self):
}
""",
{'packages': [{'name': 'pkg1', 'version': '1.0',
'files': ['/usr/bin/wc']},
'files': ['/usr/bin/wc'],
'section': None},
{'name': 'pkg2', 'version': '1.0',
'files': ['/etc/2_two.cfg',
'/usr/lib/2_one.so']},
'/usr/lib/2_one.so'],
'section': 'libs'},
{'name': 'python', 'version': '2.7',
'files': ['/usr/bin/python']}],
'files': ['/usr/bin/python'],
'section': 'python'}],
'other_files': ['/bin/sh',
'/some/dir/drive.py',
'/some/dir/experiment',
Expand Down

0 comments on commit 349d5c7

Please sign in to comment.