コード例 #1
0
ファイル: tests.py プロジェクト: monkpit/smokesignal
 def test_emitting_kwarg_style(self, emit):
     with smokesignal.emitting(enter='foo', exit='bar'):
         pass
     emit.assert_has_calls([call('foo'), call('bar')])
コード例 #2
0
ファイル: tests.py プロジェクト: JamesHyunKim/smokesignal
    def test_emitting_kwarg_style(self, emit):
        with smokesignal.emitting(enter='foo', exit='bar'):
            pass

        assert emit.call_count == 2
コード例 #3
0
ファイル: tests.py プロジェクト: monkpit/smokesignal
 def test_emitting_arg_style(self, emit):
     with smokesignal.emitting('foo'):
         pass
     emit.assert_called_with('foo')
コード例 #4
0
ファイル: tests.py プロジェクト: JamesHyunKim/smokesignal
    def test_emitting_arg_style(self, emit):
        with smokesignal.emitting('foo'):
            pass

        assert emit.call_count == 1
コード例 #5
0
ファイル: tests.py プロジェクト: zhoufeng1989/smokesignal
    def test_emitting_kwarg_style(self, emit):
        with smokesignal.emitting(enter='foo', exit='bar'):
            pass

        assert emit.call_count == 2
コード例 #6
0
ファイル: tests.py プロジェクト: zhoufeng1989/smokesignal
    def test_emitting_arg_style(self, emit):
        with smokesignal.emitting('foo'):
            pass

        assert emit.call_count == 1
コード例 #7
0
ファイル: tests.py プロジェクト: Brightmd/smokesignal
 def test_emitting_kwarg_style(self, emit):
     with smokesignal.emitting(enter='foo', exit='bar'):
         pass
     emit.assert_has_calls([call('foo'), call('bar')])
コード例 #8
0
ファイル: tests.py プロジェクト: Brightmd/smokesignal
 def test_emitting_arg_style(self, emit):
     with smokesignal.emitting('foo'):
         pass
     emit.assert_called_with('foo')