-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Teemu Kokkonen
committed
Feb 26, 2015
1 parent
0ff6945
commit 1cc3d64
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
from stellar.models import get_unique_hash | ||
from stellar.models import get_unique_hash, Table, Snapshot | ||
|
||
|
||
def test_get_unique_hash(): | ||
assert get_unique_hash() | ||
assert get_unique_hash() != get_unique_hash() | ||
assert len(get_unique_hash()) == 32 | ||
|
||
|
||
def test_table(): | ||
table = Table( | ||
table_name='hapsu', | ||
snapshot=Snapshot( | ||
snapshot_name='snapshot', | ||
project_name='myproject', | ||
hash='3330484d0a70eecab84554b5576b4553' | ||
) | ||
) | ||
assert len(table.get_table_name('master')) == 24 |