diff options
Diffstat (limited to 'tests/unittests/test_datasource/test_smartos.py')
| -rw-r--r-- | tests/unittests/test_datasource/test_smartos.py | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_smartos.py b/tests/unittests/test_datasource/test_smartos.py index 46d67b94..42ac6971 100644 --- a/tests/unittests/test_datasource/test_smartos.py +++ b/tests/unittests/test_datasource/test_smartos.py @@ -426,6 +426,13 @@ class TestSmartOSDataSource(FilesystemMockingTestCase):          self.assertEqual(MOCK_RETURNS['sdc:uuid'],                           dsrc.metadata['instance-id']) +    def test_platform_info(self): +        """All platform-related attributes are properly set.""" +        dsrc = self._get_ds(mockdata=MOCK_RETURNS) +        self.assertEqual('joyent', dsrc.cloud_name) +        self.assertEqual('joyent', dsrc.platform_type) +        self.assertEqual('serial (/dev/ttyS1)', dsrc.subplatform) +      def test_root_keys(self):          dsrc = self._get_ds(mockdata=MOCK_RETURNS)          ret = dsrc.get_data()  | 
