Improve test on read of ModelSingleton to return only one value
This commit is contained in:
1 parent
1db3cb05b3
commit
d9636351ec
1 file changed
+1
-1
@@ -27,7 +27,7 @@ class ModelSingletonTestCase(unittest.TestCase):
|
||||
self.assert_(singleton['name'] == 'test')
|
||||
self.assert_(singleton['id'] == 1)
|
||||
|
||||
singleton = self.singleton.read([1], ['name'])[0]
|
||||
singleton, = self.singleton.read([1], ['name'])
|
||||
self.assert_(singleton['name'] == 'test')
|
||||
self.assert_(singleton['id'] == 1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user