diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-05-28 19:51:51 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-05-28 19:51:51 -0300 |
commit | 9a545da8d76dae320c71e890ec74264d427465df (patch) | |
tree | a9678200ab43d0bb1bdb7f371ccd08a2f745fb42 /tests | |
parent | changes in the config module (g_octave/config.py), added tests to the overlay... (diff) | |
download | g-octave-9a545da8d76dae320c71e890ec74264d427465df.tar.gz g-octave-9a545da8d76dae320c71e890ec74264d427465df.tar.bz2 g-octave-9a545da8d76dae320c71e890ec74264d427465df.zip |
finished the basic test for the module g_octave.overlay (tests/test_overlay.py)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_overlay.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test_overlay.py b/tests/test_overlay.py index c5d854f..6d33edc 100644 --- a/tests/test_overlay.py +++ b/tests/test_overlay.py @@ -48,7 +48,16 @@ class TestOverlay(unittest.TestCase): ) def test_overlay(self): - overlay.create_overlay(conf = self._config, quiet = True) + overlay.create_overlay(conf = self._config, quiet = True) + files = { + os.path.join(self._overlay, 'eclass', 'octave-forge.eclass'): '', + os.path.join(self._overlay, 'profiles', 'repo_name'): 'g-octave', + os.path.join(self._overlay, 'profiles', 'categories'): 'g-octave', + } + for _file in files: + self.assertTrue(os.path.exists(_file)) + with open(_file) as fp: + self.assertEqual(fp.read(), files[_file]) def tearDown(self): shutil.rmtree(self._dir) |