def test_check_spec_name_fail(self): # check_spec_name exits if the name is not correct # self.assertRaises(SystemExit, configure.check_spec_name( # "tests/data/bad-name.spec")) should work, but doesn't try: configure.check_spec_name("tests/data/bad-name.spec") self.fail() except SystemExit: pass
def test_check_spec_name(self): # check_spec_name does not exit if the name is correct configure.check_spec_name("tests/data/ocaml-cohttp.spec")