Say a repeated heading appears more than once, a count the exit does not check
This commit is contained in:
@@ -45,7 +45,7 @@ class ReadPremises(unittest.TestCase):
|
||||
"# T\n## Goals\n\n## Audience\nme\n": "nothing under ## Goals",
|
||||
"# T\n## Goals\n1. g\n": "no ## Audience heading",
|
||||
"# T\n## Goals\n1. g\n## Audience\n": "nothing under ## Audience",
|
||||
"# T\n## Goals\n1. g\n## Audience\nme\n## Goals\n": "## Goals twice",
|
||||
"# T\n## Goals\n1. g\n## Audience\nme\n## Goals\n": "## Goals more than once",
|
||||
}
|
||||
with tempfile.TemporaryDirectory() as root, contextlib.chdir(root):
|
||||
self.assertIn(f"README.md in {os.getcwd()}: No such file or directory", self.exit_message())
|
||||
|
||||
Reference in New Issue
Block a user