test_Prints_formatted_provenance()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
#!/usr/bin/python
2
# -*- coding: UTF-8 -*-
3
from mock import Mock, sentinel, patch
4
from tests.ditest import DependencyInjectionTestBase
5
6
7
class StdoutMediumTests(DependencyInjectionTestBase):
8
9
    def test_Prints_formatted_provenance(self):
10
        from niprov.mediumstdout import StandardOutputMedium
11
        mprint = Mock()
12
        fmt = Mock()
13
        with patch('__builtin__.print') as mprint:
14
            exporter = StandardOutputMedium()
15
            out = exporter.export('Goodbye World!', fmt)
16
            mprint.assert_called_with('Goodbye World!')
17
18
19
20