<s> """<STR_LIT>""" <EOL> import os <EOL> import yaml <EOL> import cloudferry_devlab . tests . config as config <EOL> from cloudferry_devlab . tests . data_collector import DataCollector <EOL> from cloudferry_devlab . tests import functional_test <EOL> import cloudferry_devlab . tests . utils as utils <EOL> class RollbackVerification ( functional_test . FunctionalTest ) : <EOL> def setUp ( self ) : <EOL> data_collector = DataCollector ( config = config ) <EOL> self . data_after = utils . convert ( data_collector . data_collector ( ) ) <EOL> file_name = config . rollback_params [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> pre_file_path = os . path . join ( self . cloudferry_dir , file_name ) <EOL> with open ( pre_file_path , "<STR_LIT:r>" ) as f : <EOL> self . pre_data = yaml . load ( f ) <EOL> def test_verify_rollback ( self ) : <EOL> """<STR_LIT>""" <EOL> self . maxDiff = None <EOL> msg = '<STR_LIT>' <EOL> for cloud in self . data_after : <EOL> for service in self . data_after [ cloud ] : <EOL> for resource in self . data_after [ cloud ] [ service ] : <EOL> print ( msg . format ( service . lower ( ) , resource . lower ( ) ) ) <EOL> self . assertEqual ( self . data_after [ cloud ] [ service ] [ resource ] , <EOL> self . pre_data [ cloud ] [ service ] [ resource ] ) </s>
