Exemple #1
0
 def test_regexp(self):
     projects = repository.load_project("ignition-plugin", self.config)
     for p in projects:
         self.assertEqual(p['name'], 'osrf')
         self.assertEqual(p['type'], 'regexp')
Exemple #2
0
 def test_direct_match(self):
     projects = repository.load_project("ignition-math6", self.config)
     for p in projects:
         self.assertEqual(p['name'], 'osrf')
         self.assertEqual(p['type'], 'stable')
Exemple #3
0
 def test_non_exist(self):
     with self.assertRaises(SystemExit) as cm:
         projects = repository.load_project("fooooo", self.config)
Exemple #4
0
 def test_non_exist(self):
     with self.assertRaises(SystemExit):
         repository.load_project('fooooo', self.config)