6366329
@@ -43,4 +43,8 @@
namespace = uuid.NAMESPACE_DNS
return uuid.uuid5(namespace, str(name.encode('ascii', 'ignore').decode()))
+ def new_function(stuff):
+ """Returns whatever it was passed. Super useful!"""
+ return stuff
+
# vim: set textwidth=120 ts=8 et sw=4:
@@ -63,4 +63,8 @@
assert type(res) is uuid.UUID
assert str(res) == '18ce9adf-9d2e-57a3-9374-076282f3d95b'
+ def test_new_function(self):
+ """Test our shiny new function."""
+ assert helpers.new_function('foo') == 'foo'
Signed-off-by: Adam Williamson awilliam@redhat.com
rebased
Pull-Request has been closed by adamwill
Signed-off-by: Adam Williamson awilliam@redhat.com