def create_test(method):

    def test_method(self):
        'Test getargspec.'
        expected = method(1, 2)
        returned = self.getargspec(method)
        self.assertEqual(returned, expected)
        self.assertIsInstance(returned, self.expected_class)
        self.assertNoDeprecation()
    return test_method
def create_test(method):

    def test_method(self):
        'Test getargspec.'
        expected = method(1, 2)
        returned = self.getargspec(method)
        self.assertEqual(returned, expected)
        self.assertIsInstance(returned, self.expected_class)
        self.assertNoDeprecation()
    return test_method