aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2015-07-18 12:03:47 -0700
committerMike Crute <mcrute@gmail.com>2015-07-18 12:03:47 -0700
commit1054f65970aafe03a86145f927029cd3e973e460 (patch)
treec53d02c883693c7d806c2cb33f4107e70e0530df /tests
parentc7f9c15c93bfc8010e109193a1e8214c7645553e (diff)
downloadpydora-1054f65970aafe03a86145f927029cd3e973e460.tar.bz2
pydora-1054f65970aafe03a86145f927029cd3e973e460.tar.xz
pydora-1054f65970aafe03a86145f927029cd3e973e460.zip
Support contains checks on dict models
updates #16
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pandora/test_models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_pandora/test_models.py b/tests/test_pandora/test_models.py
index 8d823c8..0243cc9 100644
--- a/tests/test_pandora/test_models.py
+++ b/tests/test_pandora/test_models.py
@@ -149,3 +149,7 @@ class TestPandoraListModel(TestCase):
149 def test_getting_keys_vs_indexes_are_identical(self): 149 def test_getting_keys_vs_indexes_are_identical(self):
150 self.assertEqual(self.result["foo"].fieldS1, self.result[0].fieldS1) 150 self.assertEqual(self.result["foo"].fieldS1, self.result[0].fieldS1)
151 self.assertEqual(self.result["bar"].fieldS1, self.result[1].fieldS1) 151 self.assertEqual(self.result["bar"].fieldS1, self.result[1].fieldS1)
152
153 def test_contains(self):
154 self.assertTrue("foo" in self.result)
155 self.assertTrue(self.result[0] in self.result)