forked from mongodb/docs-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sam Kleinman
committed
May 21, 2014
1 parent
710b5af
commit 40e4ce3
Showing
7 changed files
with
89 additions
and
25 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.PHONY: test | ||
|
||
test: | ||
@nosetests2 -w test/ giza |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import giza.configuration | ||
|
||
from unittest import TestCase | ||
|
||
class TestGiza(TestCase): | ||
@classmethod | ||
def setUp(self): | ||
self.conf = giza.configuration.Configuration() | ||
|
||
self.result = [ 1, 1, 2, 3, 5, 8 ] | ||
|
||
def test_baseline(self): | ||
self.conf.baseline = [ 1, 1, 2, 3, 5, 8 ] | ||
|
||
self.assertEqual(self.result, self.conf.baseline) | ||
|
||
def test_subdoc_type(self): | ||
self.conf.base.foo = 1 | ||
print(type(self.conf)) | ||
self.assertEqual(self.conf.base, True) |
Empty file.