Example #1
0
 def _get_deprecated_attributes(self):
     """See `graph_reference.get_deprecated_attributes`."""
     if self._deprecated_attributes is None:
         parent_object_names = self._get_parent_object_names()
         deprecated_attributes = graph_reference.get_deprecated_attributes(
             self._name, parent_object_names)
         self.__dict__['_deprecated_attributes'] = deprecated_attributes
     return self._deprecated_attributes
Example #2
0
 def _get_deprecated_attributes(self):
     """See `graph_reference.get_deprecated_attributes`."""
     if self._deprecated_attributes is None:
         parent_object_names = self._get_parent_object_names()
         deprecated_attributes = graph_reference.get_deprecated_attributes(
             self._name, parent_object_names
         )
         self.__dict__['_deprecated_attributes'] = deprecated_attributes
     return self._deprecated_attributes
Example #3
0
    def test_get_deprecated_attributes(self):

        # this may eventually break, but it's important to check *something*

        bar_deprecated_attributes = gr.get_deprecated_attributes('bar')

        expected_attributes = ['bardir']

        for expected_attribute in expected_attributes:
            self.assertIn(expected_attribute, bar_deprecated_attributes)
Example #4
0
    def test_get_deprecated_attributes(self):

        # this may eventually break, but it's important to check *something*

        bar_deprecated_attributes = gr.get_deprecated_attributes('bar')

        expected_attributes = ['bardir']

        for expected_attribute in expected_attributes:
            self.assertIn(expected_attribute, bar_deprecated_attributes)