summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/Base64Keywords.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-07-19 16:55:55 -0400
committerDR695H <dr695h@att.com>2019-07-19 17:50:32 -0400
commit4c8dc6a28644cbd44084296907d54c66b447432e (patch)
tree7d98c75cee99ad3891bebc79847db0d0a1d95ae9 /robotframework-onap/ONAPLibrary/Base64Keywords.py
parent601ead6cc5e04f276d57d118e1d94d1366278a24 (diff)
fixing is not none
Issue-ID: TEST-174 Change-Id: I1b48d6f6839cdbb4df5eb6461ac1a053fcdfbc57 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/ONAPLibrary/Base64Keywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/Base64Keywords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/robotframework-onap/ONAPLibrary/Base64Keywords.py b/robotframework-onap/ONAPLibrary/Base64Keywords.py
index a87a4b9..11cc69c 100644
--- a/robotframework-onap/ONAPLibrary/Base64Keywords.py
+++ b/robotframework-onap/ONAPLibrary/Base64Keywords.py
@@ -11,9 +11,9 @@ class Base64Keywords(object):
@keyword
def base64_encode(self, string_to_encode):
"""generate a base64 encoded string"""
- return base64.b64encode(self, string_to_encode)
+ return base64.b64encode(string_to_encode.encode("utf-8"))
@keyword
def base64_decode(self, string_to_decode):
"""decode a base64 encoded string"""
- return base64.b64decode(self, string_to_decode)
+ return base64.b64decode(string_to_decode.encode("utf-8"))