'Test templates can handle objects with no sense of truthiness'

def test_template_non_bool(self):

    class NonBoolObject(object, ):
        def __len__(self):
            return NotImplemented
        def __bool__(self):
            return NotImplemented
    t = OperatorSubclass(task_id='test_bad_template_obj', some_templated_field=NonBoolObject(), dag=self.dag)
    t.resolve_template_files()
