예제 #1
0
파일: test_api.py 프로젝트: zeth/magpy
 def test_create_unique_id_empty_list(self):
     self.assertEqual(
         CommandHandler._create_unique_id([], 'Lola'),
         'Lola_1')
예제 #2
0
파일: test_api.py 프로젝트: zeth/magpy
 def test_create_unique_id_empty_list(self):
     self.assertEqual(CommandHandler._create_unique_id([], 'Lola'),
                      'Lola_1')
예제 #3
0
파일: test_api.py 프로젝트: zeth/magpy
 def test_create_unique_two_matching_items(self):
     self.assertEqual(
         CommandHandler._create_unique_id(['Lola_1', 'Lola_2'], 'Lola'),
         'Lola_3')
예제 #4
0
파일: test_api.py 프로젝트: zeth/magpy
 def test_create_unique_two_matching_items(self):
     self.assertEqual(
         CommandHandler._create_unique_id(['Lola_1', 'Lola_2'], 'Lola'),
         'Lola_3')