'A new-style tasks with undefined name attribute should use the instance
variable name.'

def test_class_based_tasks_are_found_with_variable_name(self):

    module = fabfile('classbased_task_fabfile.py')
    with path_prefix(module):
        (docs, funcs) = load_fabfile(module)
        eq_(len(funcs), 1)
        ok_(('foo' in funcs))
        eq_(funcs['foo'].name, 'foo')
