Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1630)

Unified Diff: quickstart/tests/test_utils.py

Issue 43860044: Environment list/selection view.
Patch Set: Environment list/selection view. Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « quickstart/tests/helpers.py ('k') | quickstart/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: quickstart/tests/test_utils.py
=== modified file 'quickstart/tests/test_utils.py'
--- quickstart/tests/test_utils.py 2013-12-19 03:32:49 +0000
+++ quickstart/tests/test_utils.py 2013-12-19 08:47:57 +0000
@@ -378,31 +378,6 @@
mock_call.assert_called_once_with('lsb_release', '-cs')
-class TestObjectDict(unittest.TestCase):
-
- def setUp(self):
- self.object_dict = utils.ObjectDict(mykey='myvalue')
-
- def test_get_attribute(self):
- # A value can be retrieved accessing the key as an attribute.
- self.assertEqual('myvalue', self.object_dict.mykey)
-
- def test_get_attribute_error(self):
- # An AttributeError is raised if the key is not in the dictionary.
- with self.assertRaises(AttributeError):
- self.object_dict.no_such_key
-
- def test_set_attribute(self):
- # A key can be added by setting the corresponding attribute.
- self.object_dict.another_key = 42
- self.assertEqual(42, self.object_dict['another_key'])
-
- def test_update_attribute(self):
- # It is possible to update an attribute.
- self.object_dict.mykey = 47
- self.assertEqual(47, self.object_dict.mykey)
-
-
class TestParseBundle(
helpers.BundleFileTestsMixin, helpers.ValueErrorTestsMixin,
unittest.TestCase):
« no previous file with comments | « quickstart/tests/helpers.py ('k') | quickstart/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b