{"id":93387,"date":"2026-04-18T23:19:35","date_gmt":"2026-04-19T04:19:35","guid":{"rendered":"https:\/\/www.bricktowntom.com\/blog\/?p=93387"},"modified":"2026-04-18T23:19:35","modified_gmt":"2026-04-19T04:19:35","slug":"an-introduction-to-python-unit-testing-with-unittest-and-pytest","status":"publish","type":"post","link":"https:\/\/www.bricktowntom.com\/blog\/04\/an-introduction-to-python-unit-testing-with-unittest-and-pytest.html","title":{"rendered":"An Introduction to Python Unit Testing with unittest and pytest"},"content":{"rendered":"<p><a href=\"https:\/\/www.sitepoint.com\/python-unit-testing-unittest-pytest\/?utm_source=rss\" title=\"An Introduction to Python Unit Testing with unittest and pytest\" rel=\"nofollow\"><br \/>\n              <img data-recalc-dims=\"1\" decoding=\"async\" class=\"webfeedsFeaturedVisual\" style=\"margin: auto;margin-bottom: 5px;max-width: 100%\" src=\"https:\/\/i0.wp.com\/uploads.sitepoint.com\/wp-content\/uploads\/2022\/07\/1658801531python-unit-testing.jpg?w=993&#038;ssl=1\" alt=\"An Introduction to Python Unit Testing with unittest and pytest\" \/><br \/>\n            <\/a><br \/>\n            Learn what software testing is, and how to run Python unit tests with unittest and pytest, two key frameworks for Python unit testing.<\/p>\n<p>\n              Continue reading<br \/>\n              <a rel=\"nofollow\" href=\"https:\/\/www.sitepoint.com\/python-unit-testing-unittest-pytest\/?utm_source=rss\">An Introduction to Python Unit Testing with unittest and pytest<\/a><br \/>\n              on <a rel=\"nofollow\" href=\"https:\/\/www.sitepoint.com\">SitePoint<\/a>.\n            <\/p>\n<p>Source: Site Point<\/p>\n<p id=\"kc_opp\"><small>Republished by  <a href=\"http:\/\/www.blogtrafficexchange.com\/\">Blog Post Promoter<\/a><\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Learn what software testing is, and how to run Python unit tests with unittest and pytest, two key frameworks for Python unit testing. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":93388,"comment_status":"false","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[23511],"tags":[128],"class_list":["post-93387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ebusiness-emarketing","tag-advantage"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/07\/1658801531python-unit-testing.jpg?fit=1200%2C679&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p3k0YU-oif","jetpack-related-posts":[{"id":93760,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/a-beginners-guide-to-http-python-requests.html","url_meta":{"origin":93387,"position":0},"title":"A Beginner\u2019s Guide to HTTP Python Requests","author":"admin","date":"April 26, 2026","format":false,"excerpt":"Learn how HTTP web requests are structured, and how to make a Python request \u2014 with the help of the Python requests library. Continue reading A Beginner\u2019s Guide to HTTP Python Requests on SitePoint. Source: Site Point","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1663666368python-requests.jpg?fit=1200%2C680&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1663666368python-requests.jpg?fit=1200%2C680&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1663666368python-requests.jpg?fit=1200%2C680&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1663666368python-requests.jpg?fit=1200%2C680&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1663666368python-requests.jpg?fit=1200%2C680&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":93458,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/a-guide-to-python-multiprocessing-and-parallel-programming.html","url_meta":{"origin":93387,"position":1},"title":"A Guide to Python Multiprocessing and Parallel Programming","author":"admin","date":"April 16, 2026","format":false,"excerpt":"Learn what Python multiprocessing is, its advantages, and how to improve the running time of Python programs by using parallel programming. Continue reading A Guide to Python Multiprocessing and Parallel Programming on SitePoint. Source: Site Point","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659506012python-multiprocessing.jpg?fit=1200%2C680&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659506012python-multiprocessing.jpg?fit=1200%2C680&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659506012python-multiprocessing.jpg?fit=1200%2C680&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659506012python-multiprocessing.jpg?fit=1200%2C680&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659506012python-multiprocessing.jpg?fit=1200%2C680&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":93448,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/understanding-python-decorators-with-examples.html","url_meta":{"origin":93387,"position":2},"title":"Understanding Python Decorators, with Examples","author":"admin","date":"April 24, 2026","format":false,"excerpt":"Learn what Python decorators are, what their syntax looks like, how to identify them in a script or framework, and how to apply them. Continue reading Understanding Python Decorators, with Examples on SitePoint. Source: Site Point","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659325421python-decorators.jpg?fit=1200%2C680&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659325421python-decorators.jpg?fit=1200%2C680&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659325421python-decorators.jpg?fit=1200%2C680&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659325421python-decorators.jpg?fit=1200%2C680&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/1659325421python-decorators.jpg?fit=1200%2C680&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":93654,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/why-learn-python.html","url_meta":{"origin":93387,"position":3},"title":"Why Learn Python?","author":"admin","date":"April 3, 2026","format":false,"excerpt":"Wondering if you should learn Python? We look at 8 key reasons why Python is a great language to learn, and how you can easily get started. Continue reading Why Learn Python? on SitePoint. Source: Site Point","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1662434826why-learn-python5.jpg?fit=1200%2C680&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1662434826why-learn-python5.jpg?fit=1200%2C680&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1662434826why-learn-python5.jpg?fit=1200%2C680&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1662434826why-learn-python5.jpg?fit=1200%2C680&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/1662434826why-learn-python5.jpg?fit=1200%2C680&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":93046,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/the-cicada-principle-and-why-it-matters-to-web-designers-updated.html","url_meta":{"origin":93387,"position":4},"title":"The Cicada Principle and Why It Matters to Web Designers (updated)","author":"admin","date":"April 1, 2026","format":false,"excerpt":"Read The Cicada Principle and Why It Matters to Web Designers (updated) and learn with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more. Continue reading The Cicada Principle and Why It Matters to Web Designers (updated) on SitePoint.\u2026","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/05\/1653197482cicada.png?fit=1200%2C400&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/05\/1653197482cicada.png?fit=1200%2C400&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/05\/1653197482cicada.png?fit=1200%2C400&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/05\/1653197482cicada.png?fit=1200%2C400&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/05\/1653197482cicada.png?fit=1200%2C400&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":92221,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/javascript-for-loop-how-to-use-the-forin-loop.html","url_meta":{"origin":93387,"position":5},"title":"JavaScript For Loop: How to Use the for\u2026in Loop","author":"admin","date":"April 26, 2026","format":false,"excerpt":"Loops allow us to cycle through items in arrays or objects and do things like print them, modify them, or perform other kinds of tasks or actions. There are different kinds of loops in JavaScript, and one of them is the for\u2026in loop. In this article, we\u2019ll learn about the\u2026","rel":"","context":"In &quot;A Few Things&quot;","block_context":{"text":"A Few Things","link":"https:\/\/www.bricktowntom.com\/blog\/category\/a-few-things"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/02\/1645567223loop.jpg?fit=1200%2C630&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/02\/1645567223loop.jpg?fit=1200%2C630&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/02\/1645567223loop.jpg?fit=1200%2C630&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/02\/1645567223loop.jpg?fit=1200%2C630&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/02\/1645567223loop.jpg?fit=1200%2C630&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts\/93387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/comments?post=93387"}],"version-history":[{"count":1,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts\/93387\/revisions"}],"predecessor-version":[{"id":93397,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts\/93387\/revisions\/93397"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/media\/93388"}],"wp:attachment":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/media?parent=93387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/categories?post=93387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/tags?post=93387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}