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