MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testGetGitignoreTemplate

Method testGetGitignoreTemplate

tests/Github_.py:414–428  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

412 )
413
414 def testGetGitignoreTemplate(self):
415 t = self.g.get_gitignore_template("Python")
416 self.assertEqual(t.name, "Python")
417 self.assertEqual(
418 t.source,
419 "*.py[cod]\n\n# C extensions\n*.so\n\n# Packages\n*.egg\n*.egg-info\ndist\nbuild\neggs\nparts\nbin\nvar\nsdist\ndevelop-eggs\n.installed.cfg\nlib\nlib64\n\n# Installer logs\npip-log.txt\n\n# Unit test / coverage reports\n.coverage\n.tox\nnosetests.xml\n\n# Translations\n*.mo\n\n# Mr Developer\n.mr.developer.cfg\n.project\n.pydevproject\n",
420 )
421 self.assertEqual(repr(t), 'GitignoreTemplate(name="Python")')
422
423 t = self.g.get_gitignore_template("C++")
424 self.assertEqual(t.name, "C++")
425 self.assertEqual(
426 t.source,
427 "# Compiled Object files\n*.slo\n*.lo\n*.o\n\n# Compiled Dynamic libraries\n*.so\n*.dylib\n\n# Compiled Static libraries\n*.lai\n*.la\n*.a\n",
428 )
429
430 def testStringOfNotSet(self):
431 self.assertEqual(str(github.GithubObject.NotSet), "NotSet")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected