Negative test for Flavor - testcase bug 903967. Test run successfully
fixed Pep8 issues. Ran Pep8, and it is fine now.
Change-Id: I23f04adcbffef4ec67a996e406aec544fa2deb5b
diff --git a/tempest/tests/test_flavors.py b/tempest/tests/test_flavors.py
index 93b4483..aadcc17 100644
--- a/tempest/tests/test_flavors.py
+++ b/tempest/tests/test_flavors.py
@@ -36,3 +36,13 @@
         """The expected flavor details should be returned"""
         resp, flavor = self.client.get_flavor_details(self.flavor_id)
         self.assertEqual(self.flavor_id, str(flavor['id']))
+
+    @attr(type='negative')
+    def test_get_non_existant_flavor(self):
+        """flavor details are not returned for non existant flavors"""
+        try:
+            resp, flavor = self.client.get_flavor_details(999)
+        except:
+            pass
+        else:
+            self.fail('Should not get details for a non-existant flavor')