<s> from __future__ import absolute_import , print_function <EOL> import mock <EOL> import mesos . cli . cmds . find <EOL> from . . import utils <EOL> @ mock . patch ( "<STR_LIT>" , utils . file_list ) <EOL> class TestFind ( utils . MockState ) : <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_single ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . lines ) == <NUM_LIT:3> <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_path ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . lines ) == <NUM_LIT:8> <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_multiple_tasks ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . lines ) == <NUM_LIT> <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_partial ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . stdout ) == <NUM_LIT:0> <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_exact ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . stdout ) == <NUM_LIT:0> <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_hide_header ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . stdout ) == <NUM_LIT:0> <EOL> @ utils . patch_args ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] ) <EOL> def test_empty_files ( self ) : <EOL> mesos . cli . cmds . find . main ( ) <EOL> assert len ( self . lines ) == <NUM_LIT:16> </s>
