コード例 #1
0
ファイル: test_sources.py プロジェクト: jsdir/stretch
 def test_watch_runs_with_autoload(self):
     source = sources.AutoloadableSource({'autoload': True})
     source.do_watch = Mock()
     source.watch()
     assert source.do_watch.was_called
コード例 #2
0
 def test_watch_runs_with_autoload(self):
     source = sources.AutoloadableSource({'autoload': True})
     source.do_watch = Mock()
     source.watch()
     assert source.do_watch.was_called
コード例 #3
0
ファイル: test_sources.py プロジェクト: jsdir/stretch
 def test_watch_fails_without_autoload(self):
     source = sources.AutoloadableSource({'autoload': False})
     source.do_watch = Mock()
     source.watch()
     assert not source.do_watch.called
コード例 #4
0
 def test_watch_fails_without_autoload(self):
     source = sources.AutoloadableSource({'autoload': False})
     source.do_watch = Mock()
     source.watch()
     assert not source.do_watch.called