<s> import unittest <EOL> from robotide . controller . filecontrollers import ResourceFileControllerFactory <EOL> class ResourceFileControllerFactoryTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> namespace = lambda : <NUM_LIT:0> <EOL> project = lambda : <NUM_LIT:0> <EOL> self . _resource_file_controller_factory = ResourceFileControllerFactory ( namespace , project ) <EOL> def test_is_all_resource_imports_resolved ( self ) : <EOL> self . assertFalse ( self . _resource_file_controller_factory . is_all_resource_file_imports_resolved ( ) ) <EOL> self . _resource_file_controller_factory . set_all_resource_imports_resolved ( ) <EOL> self . assertTrue ( self . _resource_file_controller_factory . is_all_resource_file_imports_resolved ( ) ) <EOL> self . _resource_file_controller_factory . set_all_resource_imports_unresolved ( ) <EOL> self . assertFalse ( self . _resource_file_controller_factory . is_all_resource_file_imports_resolved ( ) ) <EOL> def test_all_resource_imports_is_unresolved_when_new_resource_is_added ( self ) : <EOL> self . _resource_file_controller_factory . set_all_resource_imports_resolved ( ) <EOL> data = lambda : <NUM_LIT:0> <EOL> data . source = '<STR_LIT:source>' <EOL> data . directory = '<STR_LIT>' <EOL> self . _resource_file_controller_factory . create ( data ) <EOL> self . assertFalse ( self . _resource_file_controller_factory . is_all_resource_file_imports_resolved ( ) ) <EOL> def test_all_resource_imports_is_unresolved_when_new_resource_is_added ( self ) : <EOL> self . _resource_file_controller_factory . set_all_resource_imports_resolved ( ) <EOL> resu = lambda : <NUM_LIT:0> <EOL> self . _resource_file_controller_factory . _resources . append ( resu ) <EOL> self . _resource_file_controller_factory . remove ( resu ) <EOL> self . assertFalse ( self . _resource_file_controller_factory . is_all_resource_file_imports_resolved ( ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
