def test_feature_finder_finds_all_feature_files_within_a_dir():
 ff = FeatureLoader(cjoin())
 files = ff.find_feature_files()
 assert_equals(sorted(files), sorted([cjoin('1st_feature_dir', 'one_more.feature'), cjoin('1st_feature_dir', 'some.feature'), cjoin('1st_feature_dir', 'more_features_here', 'another.feature'), cjoin('2nd_feature_dir', 'before_and_after_all.feature'), cjoin('2nd_feature_dir', 'with_defined_steps.feature'), cjoin('3rd_feature_dir', 'my_steps_are_anywhere.feature')]))

def test_feature_finder_finds_all_feature_files_within_a_dir ( ) : ff = FeatureLoader ( cjoin ( ) ) files = ff . find_feature_files ( ) assert_equals ( sorted ( files ) , sorted ( [ cjoin ( '1st_feature_dir' , 'one_more.feature' ) , cjoin ( '1st_feature_dir' , 'some.feature' ) , cjoin ( '1st_feature_dir' , 'more_features_here' , 'another.feature' ) , cjoin ( '2nd_feature_dir' , 'before_and_after_all.feature' ) , cjoin ( '2nd_feature_dir' , 'with_defined_steps.feature' ) , cjoin ( '3rd_feature_dir' , 'my_steps_are_anywhere.feature' ) ] ) )
featureloader finds all feature files within a directory .