def test_get_repo_from_parent(self): step = PublishStep('foo_step') step.publish_conduit = 'foo' step.parent = mock.Mock() step.parent.get_repo.return_value = 'foo' self.assertEquals('foo', step.get_repo())
def test_get_distributor_type_from_parent(self): step = PublishStep('foo_step') step.publish_conduit = 'foo' step.parent = mock.Mock() step.parent.get_distributor_type.return_value = 'foo' self.assertEquals('foo', step.get_distributor_type())
def test_get_conduit(self): step = PublishStep('foo_step') step.publish_conduit = 'foo' self.assertEquals('foo', step.get_conduit())