Answer stability round 1: 0 🔴, 17 🟡 (0 misread); read line ends as before, drop a stale copy, say why a read failed, and test each failure the round named
This commit is contained in:
@@ -32,6 +32,10 @@ class Act(unittest.TestCase):
|
||||
|
||||
def test_a_record_that_fails_is_a_failure(self):
|
||||
self.assertEqual(main.act("open", MemoryStore(fails="the wiki is down"), self.copy), Failure("the wiki is down"))
|
||||
record = MemoryStore("# Decisions\n")
|
||||
main.act("open", record, self.copy)
|
||||
record.fails = "the wiki is down"
|
||||
self.assertEqual(main.act("save", record, self.copy), Failure("the wiki is down"))
|
||||
|
||||
|
||||
class BlackBox(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user