示例#1
0
 def test_two(self):
     # case: no ID, no note, no hashtag
     self.assertFalse(
         tasker.initial_check_tasker_ch(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'ch',
                 'note': '',
                 'extra note': ''
             }))
示例#2
0
 def test_ten(self):
     # case: many IDs, no notes, no hashtag
     self.assertFalse(
         tasker.initial_check_tasker_ch(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'ch',
                 'note': 'goga',
                 'extra note': 'kal',
                 'IDs': [35, 36]
             }))
示例#3
0
 def test_five(self):
     # case: ID is given, note in base, no hashtag
     self.assertFalse(
         tasker.initial_check_tasker_ch(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'ch',
                 'note': 'goga',
                 'extra note': 'kal',
                 'IDs': [1]
             }))
示例#4
0
 def test_seven(self):
     # case: many IDs, many notes, hashtag is given
     self.assertFalse(
         tasker.initial_check_tasker_ch(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'ch',
                 'note': 'goga',
                 'hashtag': 0,
                 'extra note': 'kal',
                 'IDs': [1, 2]
             }))
示例#5
0
 def test_six(self):
     # case: ID is given, no note, hashtag is given
     self.assertFalse(
         tasker.initial_check_tasker_ch(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'ch',
                 'note': 'goga',
                 'hashtag': 0,
                 'extra note': 'kal',
                 'IDs': [35]
             }))
示例#6
0
 def test_four(self):
     # case: no ID, hashtag is given
     self.assertFalse(
         tasker.initial_check_tasker_ch(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'ch',
                 'note': 'goga',
                 'hashtag': 1,
                 'extra note': 'kal',
                 'IDs': []
             }))