예제 #1
0
 def test_three(self):
     self.assertEqual(
         tasker.tasker_get(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'get',
                 'note': '',
                 'tags': ['o kal']
             }), {})
예제 #2
0
 def test_one(self):
     self.assertEqual(
         tasker.tasker_get(test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'get',
             'note': '',
             'tags': []
         }), {
             '1': 'gogakal',
             '2': 'kak je tak'
         })
     tasker.tasker_ch(
         test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'ch',
             'note': '',
             'extra note': 'kal',
             'hashtag': 1,
             'tags': ['ronyal', 'iskal'],
             'IDs': [1]
         })
     self.assertEqual(
         tasker.tasker_get(test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'get',
             'note': '',
             'tags': []
         }), {
             '1': 'kal',
             '2': 'kak je tak'
         })
     self.assertEqual(
         tasker.tasker_get(test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'get',
             'note': '',
             'tags': []
         }), {
             '1': 'kal',
             '2': 'kak je tak'
         })
예제 #3
0
 def test_two(self):
     self.assertEqual(
         tasker.tasker_get(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'get',
                 'note': '',
                 'tags': ['ronyal', 'is kal']
             }), {
                 '1': 'gogakal',
                 '3': 'vesma kal'
             })
예제 #4
0
 def test_one(self):
     self.assertEqual(
         tasker.tasker_get(test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'get',
             'note': '',
             'tags': []
         }), {
             '1': 'gogakal',
             '2': 'kak je tak',
             '3': 'vesma kal',
             '4': 'pichal'
         })
예제 #5
0
 def test_two(self):
     tasker.tasker_add(test_cursor, test_connection, {
         'beginning': 'tasker',
         'command': 'add',
         'note': 'gogakal',
         'tags': []
     })
     self.assertEqual(
         tasker.tasker_get(test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'add',
             'note': '',
             'tags': []
         }), {'1': 'gogakal'})
예제 #6
0
 def test_one(self):
     tasker.tasker_rm(
         test_cursor, test_connection, {
             'beginning': 'tasker',
             'command': 'tasker_rm',
             'note': '',
             'tags': [],
             'IDs': [1]
         })
     self.assertEqual(
         tasker.tasker_get(
             test_cursor, test_connection, {
                 'beginning': 'tasker',
                 'command': 'get',
                 'note': '',
                 'tags': ['iskal']
             }), {'2': 'kak je tak'})