Fixed CQ for tests.core module
This commit is contained in:
parent
a9e9f25b5d
commit
5eff9d6a04
|
@ -249,21 +249,21 @@ class TestCore(unittest.TestCase):
|
||||||
encoding = 2
|
encoding = 2
|
||||||
result = helper_sent.insert(
|
result = helper_sent.insert(
|
||||||
'', # msgid
|
'', # msgid
|
||||||
toAddress,
|
toAddress,
|
||||||
'', # ripe
|
'', # ripe
|
||||||
fromAddress,
|
fromAddress,
|
||||||
subject,
|
subject,
|
||||||
message,
|
message,
|
||||||
'', # ackdata
|
'', # ackdata
|
||||||
int(time.time()), # sentTime
|
int(time.time()), # sentTime
|
||||||
int(time.time()), # lastActionTime
|
int(time.time()), # lastActionTime
|
||||||
0, # sleeptill
|
0, # sleeptill
|
||||||
'msgqueued',
|
'msgqueued',
|
||||||
0,
|
0,
|
||||||
'sent',
|
'sent',
|
||||||
encoding,
|
encoding,
|
||||||
0,
|
0,
|
||||||
True)
|
True)
|
||||||
self.assertNotEqual(result[0], '')
|
self.assertNotEqual(result[0], '')
|
||||||
|
|
||||||
def test_defalut_insert_values(self):
|
def test_defalut_insert_values(self):
|
||||||
|
@ -274,20 +274,21 @@ class TestCore(unittest.TestCase):
|
||||||
subject = 'test subject'
|
subject = 'test subject'
|
||||||
result = helper_sent.insert(
|
result = helper_sent.insert(
|
||||||
'', # msgid
|
'', # msgid
|
||||||
toAddress,
|
toAddress,
|
||||||
'', # ripe
|
'', # ripe
|
||||||
fromAddress,
|
fromAddress,
|
||||||
subject,
|
subject,
|
||||||
message,
|
message,
|
||||||
'', # ackdata
|
'', # ackdata
|
||||||
'', # sentTime
|
'', # sentTime
|
||||||
'', # lastActionTime
|
'', # lastActionTime
|
||||||
'', # sleeptill
|
'', # sleeptill
|
||||||
'', # status
|
'', # status
|
||||||
'', # retryNumber
|
'', # retryNumber
|
||||||
'', # folder
|
'', # folder
|
||||||
'', # encoding
|
'', # encoding
|
||||||
'', True)
|
'',
|
||||||
|
True)
|
||||||
for index in [0, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14]:
|
for index in [0, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14]:
|
||||||
self.assertNotEqual(result[index], '')
|
self.assertNotEqual(result[index], '')
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user