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
Guillaume Hervier
slapos.core
Commits
5299c2e2
Commit
5299c2e2
authored
Dec 26, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo.
parent
650be089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+14
-14
No files found.
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
5299c2e2
...
@@ -97,8 +97,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -97,8 +97,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
# Check the list of expected simulation
# Check the list of expected simulation
idx
=
0
idx
=
0
for
simulation_movement
in
simulation_movement_list
:
for
simulation_movement
in
simulation_movement_list
:
ex
cep
ted_start_date
=
expected_time_frame_list
[
idx
]
ex
pec
ted_start_date
=
expected_time_frame_list
[
idx
]
ex
cep
ted_stop_date
=
expected_time_frame_list
[
idx
+
1
]
ex
pec
ted_stop_date
=
expected_time_frame_list
[
idx
+
1
]
# Check simulation movement property
# Check simulation movement property
self
.
assertEquals
(
1.0
,
self
.
assertEquals
(
1.0
,
simulation_movement
.
getQuantity
())
simulation_movement
.
getQuantity
())
...
@@ -136,8 +136,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -136,8 +136,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self
.
assertEquals
(
None
,
self
.
assertEquals
(
None
,
simulation_movement
.
getAggregate
(
simulation_movement
.
getAggregate
(
portal_type
=
"Software Release"
))
portal_type
=
"Software Release"
))
self
.
assertEqual
(
ex
cep
ted_start_date
,
simulation_movement
.
getStartDate
())
self
.
assertEqual
(
ex
pec
ted_start_date
,
simulation_movement
.
getStartDate
())
self
.
assertEqual
(
ex
cep
ted_stop_date
,
simulation_movement
.
getStopDate
())
self
.
assertEqual
(
ex
pec
ted_stop_date
,
simulation_movement
.
getStopDate
())
# fetch invoice level simulation
# fetch invoice level simulation
applied_rule_invoice_list
=
\
applied_rule_invoice_list
=
\
...
@@ -176,9 +176,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -176,9 +176,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
simulation_movement_invoice
.
getResource
())
simulation_movement_invoice
.
getResource
())
self
.
assertEquals
(
"vifib/invoicing"
,
self
.
assertEquals
(
"vifib/invoicing"
,
simulation_movement_invoice
.
getTradePhase
())
simulation_movement_invoice
.
getTradePhase
())
self
.
assertEquals
(
ex
cep
ted_start_date
,
self
.
assertEquals
(
ex
pec
ted_start_date
,
simulation_movement_invoice
.
getStartDate
())
simulation_movement_invoice
.
getStartDate
())
self
.
assertEquals
(
ex
cep
ted_stop_date
,
self
.
assertEquals
(
ex
pec
ted_stop_date
,
simulation_movement_invoice
.
getStopDate
())
simulation_movement_invoice
.
getStopDate
())
self
.
assertEquals
(
None
,
self
.
assertEquals
(
None
,
simulation_movement_invoice
.
getAggregate
(
simulation_movement_invoice
.
getAggregate
(
...
@@ -243,9 +243,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -243,9 +243,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
simulation_movement_invoice_transaction_credit
.
getSpecialise
())
simulation_movement_invoice_transaction_credit
.
getSpecialise
())
self
.
assertEquals
(
"vifib/accounting"
,
self
.
assertEquals
(
"vifib/accounting"
,
simulation_movement_invoice_transaction_credit
.
getTradePhase
())
simulation_movement_invoice_transaction_credit
.
getTradePhase
())
self
.
assertEquals
(
ex
cep
ted_start_date
,
self
.
assertEquals
(
ex
pec
ted_start_date
,
simulation_movement_invoice_transaction_credit
.
getStartDate
())
simulation_movement_invoice_transaction_credit
.
getStartDate
())
self
.
assertEquals
(
ex
cep
ted_stop_date
,
self
.
assertEquals
(
ex
pec
ted_stop_date
,
simulation_movement_invoice_transaction_credit
.
getStopDate
())
simulation_movement_invoice_transaction_credit
.
getStopDate
())
self
.
assertEquals
(
1.0
,
self
.
assertEquals
(
1.0
,
...
@@ -270,9 +270,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -270,9 +270,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
simulation_movement_invoice_transaction_debit
.
getSpecialise
())
simulation_movement_invoice_transaction_debit
.
getSpecialise
())
self
.
assertEquals
(
"vifib/accounting"
,
self
.
assertEquals
(
"vifib/accounting"
,
simulation_movement_invoice_transaction_debit
.
getTradePhase
())
simulation_movement_invoice_transaction_debit
.
getTradePhase
())
self
.
assertEquals
(
ex
cep
ted_start_date
,
self
.
assertEquals
(
ex
pec
ted_start_date
,
simulation_movement_invoice_transaction_debit
.
getStartDate
())
simulation_movement_invoice_transaction_debit
.
getStartDate
())
self
.
assertEquals
(
ex
cep
ted_stop_date
,
self
.
assertEquals
(
ex
pec
ted_stop_date
,
simulation_movement_invoice_transaction_debit
.
getStopDate
())
simulation_movement_invoice_transaction_debit
.
getStopDate
())
# credit simulation movement has no content
# credit simulation movement has no content
...
@@ -328,9 +328,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -328,9 +328,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
simulation_movement_credit_payment_credit
.
getSpecialise
())
simulation_movement_credit_payment_credit
.
getSpecialise
())
self
.
assertEquals
(
"vifib/payment"
,
self
.
assertEquals
(
"vifib/payment"
,
simulation_movement_credit_payment_credit
.
getTradePhase
())
simulation_movement_credit_payment_credit
.
getTradePhase
())
self
.
assertEquals
(
ex
cep
ted_start_date
,
self
.
assertEquals
(
ex
pec
ted_start_date
,
simulation_movement_credit_payment_credit
.
getStartDate
())
simulation_movement_credit_payment_credit
.
getStartDate
())
self
.
assertEquals
(
ex
cep
ted_stop_date
,
self
.
assertEquals
(
ex
pec
ted_stop_date
,
simulation_movement_credit_payment_credit
.
getStopDate
())
simulation_movement_credit_payment_credit
.
getStopDate
())
self
.
assertEquals
(
1.0
,
self
.
assertEquals
(
1.0
,
...
@@ -353,9 +353,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -353,9 +353,9 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
simulation_movement_credit_payment_debit
.
getSpecialise
())
simulation_movement_credit_payment_debit
.
getSpecialise
())
self
.
assertEquals
(
"vifib/payment"
,
self
.
assertEquals
(
"vifib/payment"
,
simulation_movement_credit_payment_debit
.
getTradePhase
())
simulation_movement_credit_payment_debit
.
getTradePhase
())
self
.
assertEquals
(
ex
cep
ted_start_date
,
self
.
assertEquals
(
ex
pec
ted_start_date
,
simulation_movement_credit_payment_debit
.
getStartDate
())
simulation_movement_credit_payment_debit
.
getStartDate
())
self
.
assertEquals
(
ex
cep
ted_stop_date
,
self
.
assertEquals
(
ex
pec
ted_stop_date
,
simulation_movement_credit_payment_debit
.
getStopDate
())
simulation_movement_credit_payment_debit
.
getStopDate
())
# check next simulation movement
# check next simulation movement
...
...
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