The contents of program/tests is not on the exclusion list for the formatter.
This:
<tests>
from unittest.gui import TestCaseGui
class myTests(TestCaseGui):
def testOne(self):
self.assertNotIn("False", self.getOutput(), "Testing that you have no False's.")
self.assertNotIn("True", self.getEditorText(), "Testing that you didn't hardcode the answer.")
self.assertRegex(self.getOutput(), r"(True[\s\n]*){5}", "Testing that you produced 5 True's.")
myTests().main()
</tests>
Getsthe first line deindented to:
<tests>
from unittest.gui import TestCaseGui
class myTests(TestCaseGui):
def testOne(self):
self.assertNotIn("False", self.getOutput(), "Testing that you have no False's.")
self.assertNotIn("True", self.getEditorText(), "Testing that you didn't hardcode the answer.")
self.assertRegex(self.getOutput(), r"(True[\s\n]*){5}", "Testing that you produced 5 True's.")
myTests().main()
</tests>
The contents of
program/testsis not on the exclusion list for the formatter.This:
Getsthe first line deindented to: