Commit f21363f3 authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup comparision.

The script disallows to choose day bigger then 28.
parent e685f8fa
......@@ -158,7 +158,10 @@ class TestSlapOSAccountingInteractionWorkflow(testSlapOSMixin):
import datetime
self.assertEqual(item.getPeriodicityHourList(), [0])
self.assertEqual(item.getPeriodicityMinuteList(), [0])
self.assertEqual(item.getPeriodicityMonthDay(), datetime.datetime.today().day)
day = datetime.datetime.today().day
if day > 28:
day = 28
self.assertEqual(item.getPeriodicityMonthDay(), day)
def test_HostingSubscription_manageAfter(self):
class DummyTestException(Exception):
......
180
\ No newline at end of file
181
\ No newline at end of file
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