def test_str(self): x = client.ServiceMethodProxy('spam', 'eggs') self.assertEqual(str(x), 'spam.eggs') x = client.ServiceMethodProxy('spam', None) self.assertEqual(str(x), 'spam')
def test_create(self): x = client.ServiceMethodProxy('a', 'b') self.assertEqual(x.service, 'a') self.assertEqual(x.name, 'b')