describe_to()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 2
rs 10
1
if __name__ == "__main__":
2
    import sys
3
    sys.path.insert(0, '..')
4
5
from hamcrest.core.base_matcher import *
6
7
import unittest
8
9
__author__ = "Jon Reid"
10
__copyright__ = "Copyright 2011 hamcrest.org"
11
__license__ = "BSD, see License.txt"
12
13
14
class TestingBaseMatcher(BaseMatcher):
15
16
    def describe_to(self, description):
17
        description.append_text('SOME DESCRIPTION')
18
19
20
class BaseMatcherTest(unittest.TestCase):
21
22
    def testStrFunctionShouldDescribeMatcher(self):
23
        matcher = TestingBaseMatcher()
24
        self.assertEqual('SOME DESCRIPTION', str(matcher))
25
26
27
if __name__ == "__main__":
28
    unittest.main()
29