Imported Upstream version 0.9.7
SVN-Git Migration
8 years ago
|
0 |
Release 0.9.7
|
|
1 |
- small update to add support for TeamCity / PyCharm test runner.
|
|
2 |
|
0 | 3 |
Release 0.9.6
|
1 | 4 |
- fix staticmethod mocking on instances
|
2 | 5 |
- fix comparison of kwargs ordering issues
|
0 | 0 |
Metadata-Version: 1.0
|
1 | 1 |
Name: flexmock
|
2 | |
Version: 0.9.6
|
|
2 |
Version: 0.9.7
|
3 | 3 |
Summary: UNKNOWN
|
4 | 4 |
Home-page: http://has207.github.com/flexmock/
|
5 | 5 |
Author: Herman Sheremetyev
|
0 | 0 |
from distutils.core import setup
|
1 | 1 |
|
2 | 2 |
setup(name='flexmock',
|
3 | |
version='0.9.6',
|
|
3 |
version='0.9.7',
|
4 | 4 |
py_modules=['flexmock'],
|
5 | 5 |
author='Herman Sheremetyev',
|
6 | 6 |
author_email='herman@swebpage.com',
|
4 | 4 |
from flexmock import UPDATED_ATTRS
|
5 | 5 |
from flexmock import Mock
|
6 | 6 |
from flexmock import MockBuiltinError
|
7 | |
from flexmock import Expectation
|
8 | 7 |
from flexmock import FlexmockContainer
|
9 | 8 |
from flexmock import FlexmockError
|
10 | 9 |
from flexmock import MethodSignatureError
|
|
20 | 19 |
from flexmock import _isproperty
|
21 | 20 |
import re
|
22 | 21 |
import sys
|
23 | |
import unicodedata
|
24 | 22 |
import unittest
|
25 | 23 |
|
26 | 24 |
|
|
1487 | 1485 |
|
1488 | 1486 |
def test_with_args_ignores_invalid_args_on_flexmock_instances(self):
|
1489 | 1487 |
foo = flexmock(bar=lambda x: x)
|
1490 | |
e = foo.should_receive('bar').with_args('stuff')
|
|
1488 |
foo.should_receive('bar').with_args('stuff')
|
1491 | 1489 |
foo.bar('stuff')
|
1492 | 1490 |
|
1493 | 1491 |
def test_with_args_does_not_compensate_for_self_on_static_instance_methods(self):
|
|
1510 | 1508 |
@classmethod
|
1511 | 1509 |
def bar(cls, x): pass
|
1512 | 1510 |
foo = Foo()
|
1513 | |
e = flexmock(foo).should_receive('bar').with_args('stuff')
|
|
1511 |
flexmock(foo).should_receive('bar').with_args('stuff')
|
1514 | 1512 |
foo.bar('stuff')
|
1515 | 1513 |
|
1516 | 1514 |
def test_calling_with_keyword_args_matches_mock_with_positional_args(self):
|