diff options
author | Darik Gamble <darik.gamble@gmail.com> | 2015-02-28 08:43:34 -0500 |
---|---|---|
committer | Darik Gamble <darik.gamble@gmail.com> | 2015-02-28 08:43:34 -0500 |
commit | bccde788f39c03e2ebbe5485ed1aa1ff275b0b31 (patch) | |
tree | 756aea4f6835236227838dbe7729ca726880bc50 /tests/test_pgspecial.py | |
parent | 687578eafbe18b8538f23ff951207e5c15efae0c (diff) |
Watch out for leading whitespace
Diffstat (limited to 'tests/test_pgspecial.py')
-rw-r--r-- | tests/test_pgspecial.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_pgspecial.py b/tests/test_pgspecial.py index 39f9f979..66d9a5ad 100644 --- a/tests/test_pgspecial.py +++ b/tests/test_pgspecial.py @@ -18,7 +18,6 @@ def test_dn_suggests_schemata(): suggestions = suggest_type('\\dn xxx', '\\dn xxx') assert suggestions == [{'type': 'schema'}] - def test_d_suggests_tables_and_schemas(): suggestions = suggest_type('\d ', '\d ') assert sorted_dicts(suggestions) == sorted_dicts([ @@ -42,3 +41,9 @@ def test_df_suggests_schema_or_function(): suggestions = suggest_type('\\df myschema.xxx', '\\df myschema.xxx') assert suggestions == [{'type': 'function', 'schema': 'myschema'}] + +def test_leading_whitespace_ok(): + cmd = '\\dn ' + whitespace = ' ' + suggestions = suggest_type(whitespace + cmd, whitespace + cmd) + assert suggestions == suggest_type(cmd, cmd) |