def test_bringing_up_an_editor(self, subprocess_call): self.assertEqual('Today I did... ', idonethis.get_done_text())
def test_stdin_available(self, stdin): stdin.isatty.return_value = False stdin.read.return_value = 'testing' self.assertEqual('testing', idonethis.get_done_text())