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