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
af7c5094
Commit
af7c5094
authored
Mar 19, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify.
parent
a6445624
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+4
-6
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
af7c5094
...
@@ -397,17 +397,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -397,17 +397,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def
_checkComputerPartitionSalePackingListState
(
self
,
state
,
def
_checkComputerPartitionSalePackingListState
(
self
,
state
,
resource
,
sequence
):
resource
,
sequence
):
delivery_line_amount
=
sequence
.
get
(
"delivery_line_amount"
,
1
)
delivery_line_amount
=
sequence
.
get
(
"delivery_line_amount"
,
1
)
computer_partition
=
self
.
portal
.
portal_catalog
.
getResultValue
(
self
.
assertEqual
(
delivery_line_amount
,
self
.
portal
.
portal_catalog
\
uid
=
sequence
[
'computer_partition_uid'
])
.
countResults
(
delivery_line_list
=
[
q
.
getObject
()
for
q
in
self
.
portal
.
portal_catalog
(
default_aggregate_uid
=
ComplexQuery
(
default_aggregate_uid
=
ComplexQuery
(
Query
(
default_aggregate_uid
=
computer_partition
.
getUid
()
),
Query
(
default_aggregate_uid
=
sequence
[
'computer_partition_uid'
]
),
Query
(
default_aggregate_uid
=
sequence
[
'software_instance_uid'
]),
Query
(
default_aggregate_uid
=
sequence
[
'software_instance_uid'
]),
operator
=
"AND"
),
operator
=
"AND"
),
portal_type
=
self
.
sale_packing_list_line_portal_type
,
portal_type
=
self
.
sale_packing_list_line_portal_type
,
simulation_state
=
state
,
simulation_state
=
state
,
resource_relative_url
=
resource
)]
resource_relative_url
=
resource
)[
0
][
0
])
self
.
assertEqual
(
delivery_line_amount
,
len
(
delivery_line_list
))
def
_checkComputerPartitionNoSalePackingList
(
self
,
resource
,
sequence
):
def
_checkComputerPartitionNoSalePackingList
(
self
,
resource
,
sequence
):
computer_partition
=
self
.
portal
.
portal_catalog
.
getResultValue
(
computer_partition
=
self
.
portal
.
portal_catalog
.
getResultValue
(
...
...
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