• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux TestFixtures Download

TestFixtures

September 24, 2009
This software provides utilities like helpers and mock objects that are useful for both unit tests and doc tests.
Version 1.6.2
License MIT/X Consortium License
Platform Linux
Supported Languages English
Homepage secure.simplistix.co.uk
Developed by Chris Withers
The TestFixtures project is an excellent collection of helpers and mock objects that are beneficial when writing unit tests or doc tests. The available helpers and mock objects are listed below, and for some functional examples, one can check the contents of the tests folder.

One of the useful classes available in TestFixtures is the Comparison class that allows users to instantiate placeholders to compare expected results with actual results when objects in the actual results do not support useful comparison. This class can make comparisons based only on object type, which is particularly advantageous for comparing sequences returned from tested code.

The compare class is another useful tool that replaces assertEquals and the failUnless(x() is True) pattern. It offers more useful differences between arguments, especially for sequences and long chains.

The diff function is another useful feature in the TestFixtures project that compares two strings and shows a unified diff of the comparison. It is handy as a third parameter to unittest.TestCase.assertEquals.

The generator function is also included in the TestFixtures package. It returns a generator that yields the arguments it was called with when the generator is iterated over.

Users can also utilize the LogCapture helper available in TestFixtures to capture log messages for specific loggers in doctests. The log_capture decorator is an alternative that allows users to capture log messages for specified loggers during unittest methods.

The replace decorator is another useful tool that enables users to replace objects such as classes and functions for the duration of a unittest approach. Importantly, the replacements are removed regardless of what happens during the test.

The Replacer helper in TestFixtures allows users to replace objects such as classes and functions within doctests and then restore the originals once testing is completed.

should_raise is another useful alternative to assertRaises that lets users verify that the exception raised is not only of the correct type but also has the correct parameters.

TestFixtures also offers test_date, test_datetime, and test_time classes that provide replacements for datetime that have a today, now, and time method, respectively. These features give repeatable, specifiable, testable dates and times.

Finally, the wrap decorator is a generic tool for wrapping method and function calls with a try-finally block, executing code before the try block and during the finally block.

Overall, TestFixtures is an excellent project with an array of useful tools that make writing unit tests or doc tests much more manageable, efficient and effective. It is highly recommended for developers that want to elevate their testing strategy.
What's New

Version 1.6.2: N/A

Free Download 21K
416
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    157
  2. Dvgrab 3.4
    94
  3. DynVPN 1.0
    83
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    76
  6. porm r2
    72
  7. Clewarecontrol 0.8
    71
  8. Hills 2.0
    71
  9. fuseftp 0.8
    70
  10. Java Games 1.0
    70

Related Downloads

PunBB Discussion Forums JumpBox
PunBB is a lightweight discussion forum software that offers essential tools to ...
ht://Check
This tool checks links for validity and accuracy, alerting the user to ...
probilty sequencing language
Probilty Sequencing Language is based on the probability drum machine in Jeskola ...
JS::Chicken
This software is a templating module designed for use with Javascript. It ...
recover
Recover utility simplifies the process of file recovery by automating some steps.
Multitalk
Multitalk software boosts the effectiveness of presentations by providing interactive features that ...
xmlclitools
xmlclitools offers convenient command-line functionality for XML data management, including search, modification, ...
MurrinaRose
The Murrine engine gains a new theme option with this release.
MurrinaCarbonit
The GNOME theme presented is an efficient, stylish and speedy option for ...
Ubercart
Ubercart is an e-commerce shopping cart that is seamlessly integrated with the ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.