|
Revision 79, 0.5 kB
(checked in by mk, 6 years ago)
|
Implementation of --static command line option (closes ticket #36).
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
import os |
|---|
| 3 |
import tempfile |
|---|
| 4 |
|
|---|
| 5 |
from _helper_cheesecake import FunctionalTest, DATA_PATH |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
special_file_name = os.path.join(tempfile.gettempdir(), 'cheesecake_special') |
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
class TestStatic(FunctionalTest): |
|---|
| 12 |
def test_static(self): |
|---|
| 13 |
self._run_cheesecake('-p %s --static' % os.path.join(DATA_PATH, 'static.tar.gz')) |
|---|
| 14 |
|
|---|
| 15 |
self._assert_success() |
|---|
| 16 |
assert not os.path.exists(special_file_name) |
|---|
| 17 |
|
|---|
| 18 |
def tearDown(self): |
|---|
| 19 |
self._cleanup() |
|---|
| 20 |
|
|---|
| 21 |
if os.path.exists(special_file_name): |
|---|
| 22 |
os.unlink(special_file_name) |
|---|