def test_docs(self): client = self.login(TEST_USERNAME) response = client.get(self.docs_url, follow=True) try: self.assertContains(response, 'Documentation', count=2) except AssertionError: self.assertContains(response, 'django-setman %s documentation' % get_version(), count=4)
def test_docs(self): client = self.login(TEST_USERNAME) response = client.get(self.docs_url, follow=True) try: self.assertContains(response, 'Documentation', count=2) except AssertionError: self.assertContains( response, 'django-setman %s documentation' % get_version(), count=4 )
def test_get_version(self): for version, result in VERSIONS: self.assertEqual(get_version(version), result)
# The master toctree document. master_doc = 'index' # General information about the project. project = u'django-setman' copyright = u'2011, oDesk PS' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '%d.%d' % (setman.VERSION[0], setman.VERSION[1]) # The full version, including alpha/beta/rc tags. release = setman.get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build']