Example #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')
Example #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')
Example #3
0
 def test_non_exist(self):
     with self.assertRaises(SystemExit) as cm:
         projects = repository.load_project("fooooo", self.config)
Example #4
0
 def test_non_exist(self):
     with self.assertRaises(SystemExit):
         repository.load_project('fooooo', self.config)