コード例 #1
0
ファイル: test_frame.py プロジェクト: rhintz42/proflib
    def test_to_dict_include_variables__simple_2(self):
        from proflib.models.frame import Frame

        frame = Frame(FrameMock())

        response = frame.to_dict(include_variables=['b']);

        assert 'a' not in response['local_variables']
コード例 #2
0
ファイル: test_frame.py プロジェクト: rhintz42/proflib
    def test_to_dict_simple(self):
        from proflib.models.frame import Frame

        frame = Frame(FrameMock())

        response = frame.to_dict();

        assert 'a' in response['local_variables']