def test_is_internal(self): """Test the behaviour of the method is internal""" dep = Dependency(target=BaseEntity('Group'), intr=True) self.assertTrue(dep.is_internal()) dep = Dependency(target=BaseEntity('Group'), intr=False) self.assertFalse(dep.is_internal())