def test_18_python3_uses_getfullargspec(self): def foo(): return None major_version = sys.version_info.major argspec = _get_argspec(foo) if major_version < 3: assert argspec.__class__.__name__ is 'ArgSpec' else: assert argspec.__class__.__name__ is 'FullArgSpec'