for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
if __name__ == "__main__":
import sys
sys.path.insert(0, '..')
from hamcrest.core.base_matcher import *
import unittest
__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"
class TestingBaseMatcher(BaseMatcher):
def describe_to(self, description):
description.append_text('SOME DESCRIPTION')
class BaseMatcherTest(unittest.TestCase):
def testStrFunctionShouldDescribeMatcher(self):
matcher = TestingBaseMatcher()
self.assertEqual('SOME DESCRIPTION', str(matcher))
unittest.main()