Skip to content

Commit

Permalink
test that new S class is returned by Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizziepit committed Apr 30, 2015
1 parent 3c4222c commit 3f3eabc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elasticgit/tests/test_workspace.py
Expand Up @@ -181,6 +181,10 @@ def test_to_object(self):
model = result.to_object()
self.assertNotEqual(model, person)

def test_search_class(self):
workspace = self.workspace
self.assertIsInstance(workspace.S(TestPerson), S)

def test_search_results_to_python(self):
person_es_data = {
'age': 1,
Expand Down

0 comments on commit 3f3eabc

Please sign in to comment.