Commit 422610df authored by Jérome Perrin's avatar Jérome Perrin

no need to test setTitle/getTitle


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38331 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35cd6394
...@@ -135,8 +135,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -135,8 +135,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
x_curr_ex_line.setBasePrice(655.957) x_curr_ex_line.setBasePrice(655.957)
x_curr_ex_line.setStartDate(DateTime(2008,9,8)) x_curr_ex_line.setStartDate(DateTime(2008,9,8))
x_curr_ex_line.setStopDate(DateTime(2008,9,10)) x_curr_ex_line.setStopDate(DateTime(2008,9,10))
self.assertEquals(x_curr_ex_line.getTitle(),
'Euro to Francs CFA')
self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(), self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(),
'Francs CFA') 'Francs CFA')
self.assertEquals(x_curr_ex_line.getBasePrice(),655.957) self.assertEquals(x_curr_ex_line.getBasePrice(),655.957)
...@@ -186,8 +184,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -186,8 +184,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
x_curr_ex_line.setBasePrice(655.957) x_curr_ex_line.setBasePrice(655.957)
x_curr_ex_line.setStartDate(DateTime(2008,9,8)) x_curr_ex_line.setStartDate(DateTime(2008,9,8))
x_curr_ex_line.setStopDate(DateTime(2008,9,10)) x_curr_ex_line.setStopDate(DateTime(2008,9,10))
self.assertEquals(x_curr_ex_line.getTitle(),
'Euro to Francs CFA')
self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(), self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(),
'Francs CFA') 'Francs CFA')
self.assertEquals(x_curr_ex_line.getBasePrice(),655.957) self.assertEquals(x_curr_ex_line.getBasePrice(),655.957)
...@@ -251,8 +247,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -251,8 +247,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
x_curr_ex_line.setBasePrice(655.957) x_curr_ex_line.setBasePrice(655.957)
x_curr_ex_line.setStartDate(DateTime(2008,9,8)) x_curr_ex_line.setStartDate(DateTime(2008,9,8))
x_curr_ex_line.setStopDate(DateTime(2008,9,10)) x_curr_ex_line.setStopDate(DateTime(2008,9,10))
self.assertEquals(x_curr_ex_line.getTitle(),
'Euro to Francs CFA')
self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(), self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(),
'Francs CFA') 'Francs CFA')
self.assertEquals(x_curr_ex_line.getBasePrice(),655.957) self.assertEquals(x_curr_ex_line.getBasePrice(),655.957)
...@@ -344,8 +338,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -344,8 +338,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
x_curr_ex_line.setBasePrice(655.957) x_curr_ex_line.setBasePrice(655.957)
x_curr_ex_line.setStartDate(DateTime(2008,9,6)) x_curr_ex_line.setStartDate(DateTime(2008,9,6))
x_curr_ex_line.setStopDate(DateTime(2008,9,7)) x_curr_ex_line.setStopDate(DateTime(2008,9,7))
self.assertEquals(x_curr_ex_line.getTitle(),
'Euro to Francs CFA')
self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(), self.assertEquals(x_curr_ex_line.getPriceCurrencyTitle(),
'Francs CFA') 'Francs CFA')
self.assertEquals(x_curr_ex_line.getBasePrice(),655.957) self.assertEquals(x_curr_ex_line.getBasePrice(),655.957)
...@@ -415,8 +407,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -415,8 +407,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
x_curr_ex_line.setBasePrice(655.957) x_curr_ex_line.setBasePrice(655.957)
x_curr_ex_line.setStartDate(DateTime(2008,9,8)) x_curr_ex_line.setStartDate(DateTime(2008,9,8))
x_curr_ex_line.setStopDate(DateTime(2008,9,10)) x_curr_ex_line.setStopDate(DateTime(2008,9,10))
self.assertEquals(x_curr_ex_line.getTitle(),
'Euro to Francs CFA')
self.assertEquals(x_curr_ex_line.getPriceCurrency(),None) self.assertEquals(x_curr_ex_line.getPriceCurrency(),None)
self.assertEquals(x_curr_ex_line.getBasePrice(),655.957) self.assertEquals(x_curr_ex_line.getBasePrice(),655.957)
x_curr_ex_line.validate() x_curr_ex_line.validate()
...@@ -468,7 +458,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -468,7 +458,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
euro_line1.setBasePrice(655.957) euro_line1.setBasePrice(655.957)
euro_line1.setStartDate(DateTime(2008,9,8)) euro_line1.setStartDate(DateTime(2008,9,8))
euro_line1.setStopDate(DateTime(2008,9,10)) euro_line1.setStopDate(DateTime(2008,9,10))
self.assertEquals(euro_line1.getTitle(), 'Euro to Francs CFA')
self.assertEquals(euro_line1.getPriceCurrencyTitle(), self.assertEquals(euro_line1.getPriceCurrencyTitle(),
'Francs CFA') 'Francs CFA')
self.assertEquals(euro_line1.getBasePrice(),655.957) self.assertEquals(euro_line1.getBasePrice(),655.957)
...@@ -481,7 +470,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase): ...@@ -481,7 +470,6 @@ class TestCurrencyExchangeLine(CurrencyExchangeTestCase):
euro_line2.setTitle('Euro to Francs CFA') euro_line2.setTitle('Euro to Francs CFA')
euro_line2.setStartDate(DateTime(2008,9,8)) euro_line2.setStartDate(DateTime(2008,9,8))
euro_line2.setStopDate(DateTime(2008,9,10)) euro_line2.setStopDate(DateTime(2008,9,10))
self.assertEquals(euro_line2.getTitle(), 'Euro to Francs CFA')
self.assertEquals(euro_line2.getPriceCurrencyTitle(), self.assertEquals(euro_line2.getPriceCurrencyTitle(),
'Francs CFA') 'Francs CFA')
self.assertEquals(euro_line2.getBasePrice(),None) self.assertEquals(euro_line2.getBasePrice(),None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment