Maybe I am misunderstanding how this works.
Given the following file:
import unittest
class Test_something(unittest.TestCase):
def test_value(self):
return True
test_value2 = 1 def test_true(self): self.test_value() self.test_value2() self.test_value3() self.assertTrue(True)
I get:
$ pychecker -A test.py
Processing module test (test.py)...
Warnings...
test.py:12: No class attribute (test_value3) found
test.py:12: No method (test_value3) found
test.py:13: No method (assertTrue) found
I am not sure if this is a bug or I'm misunderstanding, or just doing something wrong. I would expect test_value2 to fail with some error, test_value3 is fine, and assertTrue is the reason I'm filing this ticket in the first place.
The code was mangled, reposting it here.
~~~~~~
:::python
import unittest
class Test_something(unittest.TestCase):
def test_value(self):
return True
~~~~~