def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def test_positive_negative_input(self):
        assert_raises(ValueError, lambda: inputs.positive(-1))