예제 #1
0
 def test_one_value_all_pairs(self):
     self.assertEquals({
         'name': 'submit/tizen/20141208.164610',
         'status': 'accepted',
         'owner': '*****@*****.**',
         'gittree': 'platform/upstream/wayland',
         'query': 'submit/tizen_ivi/20141210.778899'
     }, parse(
         'name:submit/tizen/20141208.164610 '
         'status:accepted owner:[email protected] '
         'gittree:platform/upstream/wayland '
         'submit/tizen_ivi/20141210.778899'))
예제 #2
0
 def test_one_value_one_wrong_key_pair(self):
     self.assertEquals(None, parse('product:tizen_common submit/tizen_ivi/20141210.778899'))
예제 #3
0
 def test_one_value_one_gittree_pair(self):
     self.assertEquals({
         'gittree': 'platform/upstream/wayland',
         'query': 'submit/tizen_ivi/20141210.778899'
     }, parse('gittree:platform/upstream/wayland  submit/tizen_ivi/20141210.778899'))
예제 #4
0
 def test_one_value_one_name_pair(self):
     self.assertEquals({
         'name': 'submit/tizen_ivi/20141210.778899',
         'query': 'submit/tizen_ivi/20141210.778899'
     }, parse('name:submit/tizen_ivi/20141210.778899 submit/tizen_ivi/20141210.778899'))
예제 #5
0
 def test_one_value_one_owner_pair(self):
     self.assertEquals({
         'owner': '*****@*****.**',
         'query': 'submit/tizen_ivi/20141210.778899'
     }, parse('owner:[email protected] submit/tizen_ivi/20141210.778899'))
예제 #6
0
 def test_one_value_one_wrong_status_pair(self):
     self.assertEquals(None, parse('status:building submit/tizen_ivi/20141210.778899'))
예제 #7
0
 def test_one_value_one_status_pair(self):
     self.assertEquals({
         'status': 'opened',
         'query': 'submit/tizen_ivi/20141210.778899'
     }, parse('status:opened submit/tizen_ivi/20141210.778899'))
예제 #8
0
 def test_two_value(self):
     self.assertEquals(None, parse('submit tizen_common'))
예제 #9
0
 def test_one_value(self):
     self.assertEquals({
         'query': 'submit/tizen_ivi/20141210.778899'
     }, parse('submit/tizen_ivi/20141210.778899'))