def setupGerritStatusPushSimple(self, *args, **kwargs):
     serv = kwargs.pop("server", "serv")
     username = kwargs.pop("username", "user")
     gsp = GerritStatusPush(serv, username, *args, **kwargs)
     yield gsp.setServiceParent(self.master)
     yield gsp.startService()
     defer.returnValue(gsp)
 def setupGerritStatusPushSimple(self, *args, **kwargs):
     serv = kwargs.pop("server", "serv")
     username = kwargs.pop("username", "user")
     gsp = GerritStatusPush(serv, username, *args, **kwargs)
     yield gsp.setServiceParent(self.master)
     yield gsp.startService()
     defer.returnValue(gsp)
 def test_default_name(self):
     reporter = GerritStatusPush('gerrit.server.com', 'password')
     self.assertEqual(reporter.name, 'GerritStatusPush')
 def test_name_as_kwarg(self):
     reporter = GerritStatusPush('gerrit.server.com',
                                 'password',
                                 name='foo')
     self.assertEqual(reporter.name, 'foo')