def test_path_with_some_mistake_folder3(self): # Given path = os.path.join(self.glancesynchome, 'fake/uni/resources') # When try: get_path(path, self.relativepath) # Then except ValueError as ex: self.assertEqual(ex.message, 'Error, the paths are not equivalent')
def test_path_with_tests_unit_resources(self): # Given path = os.path.join(self.glancesynchome, 'tests/unit/resources') # When result = get_path(path, self.relativepath) # Then self.assertEqual(self.validresult, result)
def test_simple(self): # Given path = self.glancesynchome # When result = get_path(path, self.relativepath) # Then self.assertEqual(self.validresult, result)
def test_path_with_tests(self): # Given path = os.path.join(self.glancesynchome, "tests") # When result = get_path(path, self.relativepath) # Then self.assertEqual(self.validresult, result)
def test_add_images_from_csv_to_mock(self): """test method add_images_from_cvs_to_mock. Check regions and images present""" tmp = get_path(os.path.abspath(os.curdir), RESOURCESPATH) path = os.path.join(tmp, 'basictest') ServersFacade.add_images_from_csv_to_mock(path) region = GlanceSyncRegion('other:Santander', self.targets) self.assertIn('Santander', self.mock_other.get_regions()) images = self.mock_other.get_imagelist(region) self.assertEquals(len(images), 2)
def config(self): path = os.path.abspath(os.curdir) tmp = get_path(path, RESOURCESPATH) self.path_test = os.path.join(tmp, 'master_filtered') self.regions = ['Burgos']
def config(self): path = os.path.abspath(os.curdir) tmp = get_path(path, RESOURCESPATH) self.path_test = os.path.join(tmp, 'obsolete') self.regions = ['other:Burgos', 'target2:Madrid']
def config(self): path = os.path.abspath(os.curdir) tmp = get_path(path, RESOURCESPATH) self.path_test = os.path.join(tmp, 'mixed') self.regions = ['Valladolid', 'master:Burgos', 'other:Madrid']