diff options
Diffstat (limited to 'test/versioning/test_api.py')
-rw-r--r-- | test/versioning/test_api.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/versioning/test_api.py b/test/versioning/test_api.py new file mode 100644 index 0000000..f13ea1a --- /dev/null +++ b/test/versioning/test_api.py @@ -0,0 +1,28 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +from migrate.versioning import api +from migrate.versioning.exceptions import * + +from test.fixture.pathed import * + + +class TestAPI(Pathed): + + def test_help(self): + self.assertTrue(isinstance(api.help('help'), basestring)) + self.assertRaises(UsageError, api.help) + self.assertRaises(UsageError, api.help, 'foobar') + self.assert_(isinstance(api.help('create'), str)) + + def test_help_commands(self): + pass + + def test_create(self): + pass + + def test_script(self): + pass + + def test_script_sql(self): + pass |