def test_has_kwargs(self): is_valid = is_valid_in_template(self.test_object, 'has_kwargs') self.assertEqual(is_valid, True, 'is_valid should be true for methods that take kwargs' )
def test_alters_data(self): is_valid = is_valid_in_template(self.test_object, 'alters_data') self.assertEqual(is_valid, False, 'is_valid should be false for the methods with .alters_data = True' )
def test_valid_method(self): is_valid = is_valid_in_template(self.test_object, 'valid_method') self.assertEqual(is_valid, True, 'is_valid should be true for methods that are accessible to templates' )
def test_private(self): is_valid = is_valid_in_template(self.test_object, '_private') self.assertEqual(is_valid, False, 'is_valid should be false for private methods' )
def test_takes_args(self): is_valid = is_valid_in_template(self.test_object, 'takes_args') self.assertEqual(is_valid, False, 'is_valid should be false methods that require arguments' )
def test_has_kwargs(self): is_valid = is_valid_in_template(self.test_object, 'has_kwargs') self.assertEqual( is_valid, True, 'is_valid should be true for methods that take kwargs')
def test_valid_method(self): is_valid = is_valid_in_template(self.test_object, 'valid_method') self.assertEqual( is_valid, True, 'is_valid should be true for methods that are accessible to templates' )
def test_alters_data(self): is_valid = is_valid_in_template(self.test_object, 'alters_data') self.assertEqual( is_valid, False, 'is_valid should be false for the methods with .alters_data = True' )
def test_takes_args(self): is_valid = is_valid_in_template(self.test_object, 'takes_args') self.assertEqual( is_valid, False, 'is_valid should be false methods that require arguments')
def test_private(self): is_valid = is_valid_in_template(self.test_object, '_private') self.assertEqual(is_valid, False, 'is_valid should be false for private methods')