Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 1 | # vim: tabstop=4 shiftwidth=4 softtabstop=4 |
| 2 | |
| 3 | # Copyright 2011 OpenStack, LLC |
| 4 | # All Rights Reserved. |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 7 | # not use this file except in compliance with the License. You may obtain |
| 8 | # a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 | # License for the specific language governing permissions and limitations |
| 16 | # under the License. |
| 17 | |
| 18 | """ |
| 19 | Functional test case to check the status of gepetto and |
| 20 | set information of hosts etc.. |
| 21 | """ |
| 22 | |
| 23 | import os |
Soren Hansen | ec3f709 | 2011-09-08 13:03:42 +0200 | [diff] [blame^] | 24 | from kong import tests |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 25 | |
| 26 | |
| 27 | class TestSkipExamples(tests.FunctionalTest): |
| 28 | @tests.skip_test("testing skipping") |
| 29 | def test_absolute_skip(self): |
| 30 | x = 1 |
| 31 | |
| 32 | @tests.skip_unless(os.getenv("BLAH"), |
| 33 | "Skipping -- Environment variable BLAH does not exist") |
| 34 | def test_skip_unless_env_blah_exists(self): |
| 35 | x = 1 |
| 36 | |
| 37 | @tests.skip_unless(os.getenv("USER"), |
| 38 | "Not Skipping -- Environment variable USER does not exist") |
| 39 | def test_skip_unless_env_user_exists(self): |
| 40 | x = 1 |
| 41 | |
| 42 | @tests.skip_if(os.getenv("USER"), |
| 43 | "Skiping -- Environment variable USER exists") |
| 44 | def test_skip_if_env_user_exists(self): |
| 45 | x = 1 |
| 46 | |
| 47 | @tests.skip_if(os.getenv("BLAH"), |
| 48 | "Not Skipping -- Environment variable BLAH exists") |
| 49 | def test_skip_if_env_blah_exists(self): |
| 50 | x = 1 |
| 51 | |
| 52 | def test_tags_example(self): |
| 53 | pass |
| 54 | test_tags_example.tags = ['kvm', 'olympus'] |