Esempio n. 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': ''
             }))
Esempio n. 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]
             }))
Esempio n. 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]
             }))
Esempio n. 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]
             }))
Esempio n. 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]
             }))
Esempio n. 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': []
             }))