summaryrefslogtreecommitdiff
path: root/tests/unittest_brain_builtin.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittest_brain_builtin.py')
-rw-r--r--tests/unittest_brain_builtin.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/unittest_brain_builtin.py b/tests/unittest_brain_builtin.py
deleted file mode 100644
index e45b80f7..00000000
--- a/tests/unittest_brain_builtin.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
-# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
-"""Unit Tests for the builtins brain module."""
-
-import unittest
-
-from astroid import extract_node, objects
-
-
-class BuiltinsTest(unittest.TestCase):
- def test_infer_property(self):
- class_with_property = extract_node(
- """
- class Something:
- def getter():
- return 5
- asd = property(getter) #@
- """
- )
- inferred_property = list(class_with_property.value.infer())[0]
- self.assertTrue(isinstance(inferred_property, objects.Property))
- self.assertTrue(hasattr(inferred_property, "args"))