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