Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Add abstract object tests
Browse files Browse the repository at this point in the history
  • Loading branch information
puhitaku committed Jan 13, 2016
1 parent 82e75b6 commit 1c11833
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_abstract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
Test of bqx.abstract.
Run Test: `tox` or `python setup.py test`
"""

from bqx.abstract import Alias


def test_auto_alias():
a_manual = Alias('real.alias').AS('alias')
a_auto = Alias('real.alias')

assert a_manual.as_claus() == 'real.alias AS alias'
assert a_auto.as_claus(auto_alias=False) == 'real.alias'
assert a_auto.as_claus(auto_alias=True) == 'real.alias AS alias'

0 comments on commit 1c11833

Please # to comment.