def real_parsing_and_adding_test(self): """Test file spec handling in KernelArguments.""" ka = KernelArguments() self.assertEqual(ka.read(["/proc/cmdlin*", "/nonexistent/file"]), ["/proc/cmdline"]) self.assertEqual(ka.read("/another/futile/attempt"), []) self.assertTrue(ka.getbool("root")) # expect this to be set in most environments
def test_real_parsing_and_adding(self): """Test file spec handling in KernelArguments.""" ka = KernelArguments() self.assertEqual(ka.read(["/proc/cmdlin*", "/nonexistent/file"]), ["/proc/cmdline"]) self.assertEqual(ka.read("/another/futile/attempt"), [])