예제 #1
0
 def test_two_messages(self):
     self.assertEqual(list_messages(self.messages, '<LABEL>'), [
         '<LABEL> (2):',
         ' - <message_1>',
         ' - <message_2>',
         '',
     ])
예제 #2
0
 def test_two_messages(self):
     self.assertEqual(list_messages(self.messages, '<LABEL>'), [
         '<LABEL> (2):',
         ' - <message_1>',
         ' - <message_2>',
         '',
     ])
예제 #3
0
 def test_three_messages(self):
     self.messages.append('<message_3>')
     self.assertEqual(list_messages(self.messages, '<LABEL>'), [
         '<LABEL> (3):',
         ' - <message_1>',
         ' - <message_2>',
         ' - <message_3>',
         '',
     ])
예제 #4
0
 def test_three_messages(self):
     self.messages.append('<message_3>')
     self.assertEqual(list_messages(self.messages, '<LABEL>'), [
         '<LABEL> (3):',
         ' - <message_1>',
         ' - <message_2>',
         ' - <message_3>',
         '',
     ])
예제 #5
0
 def test_no_messages(self):
     self.assertEqual(list_messages([], '<LABEL>'), [])
예제 #6
0
 def test_no_messages(self):
     self.assertEqual(list_messages([], '<LABEL>'), [])