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): |