From 833d7fc7dfe077b39eade72a5496a40181b20a0c Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Thu, 23 May 2013 19:51:24 -0400 Subject: Add coverage for gluster.swift module (PkgInfo). Change-Id: I614efb853989ab455721bbf28309cec746343f50 Signed-off-by: Peter Portante Reviewed-on: http://review.gluster.org/5081 Reviewed-by: Luis Pabon Tested-by: Luis Pabon --- gluster/swift/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gluster') diff --git a/gluster/swift/__init__.py b/gluster/swift/__init__.py index fa360b6..f2c2403 100644 --- a/gluster/swift/__init__.py +++ b/gluster/swift/__init__.py @@ -8,8 +8,10 @@ class PkgInfo(object): self.final = final def save_config(self, filename): - """Crates a file with the package configuration - which can be sourced by a bash script""" + """ + Creates a file with the package configuration which can be sourced by + a bash script. + """ with open(filename, 'w') as fd: fd.write("PKG_NAME=%s\n" % self.name) fd.write("PKG_VERSION=%s\n" % self.canonical_version) -- cgit