Karellen Testing Frameworks and Utilities
Project description
Karellen Testing Frameworks and Utilities
This project aggregates testing frameworks and utilities for all of the projects under Karellen umbrella.
Mock
A collection of Mock utilities helping with common tasks
Spy
from unittest import TestCase
from karellen.testing.mock import MagicSpy
class Class_A(object):
def method_X(self):
self.method_Y()
def method_Y(self):
pass
class TestSpy(TestCase):
def test_class_a_api(self):
mock = MagicSpy(Class_A())
mock.method_X()
mock.method_Y.assert_called_once_with()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for karellen-testing-0.0.1.dev20161012185112.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7813c57ee38154209113cebed9aea9bfa49d1da3a0bd425b09a971e611adb8 |
|
MD5 | 033ca85d23affd3c7244139ab6d9d73a |
|
BLAKE2b-256 | db2f6ae03ca06d5b9689ab68762e65d2cf7932d785c8063480e700f531af5996 |
Close
Hashes for karellen_testing-0.0.1.dev20161012185112-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dd82fd504d42cb75a4ad9f16bb74579ff591a335df9c3a7595fe13dab1b8290 |
|
MD5 | b7c2dbf7bc68fc1babd02c98ed2ea695 |
|
BLAKE2b-256 | 3ac4fe7d15bd2cb8db7498a4f8a49503ee72bbf9357cc3e8f9eb11b5d63d5aa3 |