

def test_basic_operation(self):
    self.service.startService()
    d1 = self.service.callRemote('spam', 'eggs', spam='eggs')
    d2 = self.service.notifyRemote('eggs', 'spam', eggs='spam')
    self.assertEqual(self.clientFactory.calls, [('call', ('spam', 'eggs'), {
        'spam': 'eggs',
    }), ('notify', ('eggs', 'spam'), {
        'eggs': 'spam',
    })])
    self.successResultOf(d1)
    self.successResultOf(d2)

dataset/ETHPy150Open flowroute/txjason/txjason/tests/test_service.py ClientServiceTests.test_basic_operation/original