

def assertMethod(self, method, request=(- 1)):
    try:
        request = self.server.requests[request]
    except IndexError:
        raise AssertionError('Cannot assert method without request')
    self.assertEqual(method.upper(), request.method)

dataset/ETHPy150Open smartfile/client-python/tests.py TestServerTestCase.assertMethod/original