Change-Id: Ib639b5eb271e48ded9d5c8bb8857b5e12260deed
Issue-ID: VVP-116
Signed-off-by: stark, steven <steven.stark@att.com>
             with open('requirements.json', 'wb') as needs:
                 needs.write(r.content)
         else:
-            warnings.warning("Unexpected content-type ({}) encountered downloading requirements.json, using last saved copy".format(r.headers.get('content-type')))
+            warnings.warn("Unexpected content-type ({}) encountered downloading requirements.json, using last saved copy".format(r.headers.get('content-type')))
     except requests.exceptions.RequestException as e:
         warnings.warn("Error downloading latest JSON, using last saved copy.")
         warnings.warn(UserWarning(e))