Exemplo n.º 1
0
 def test_02_should_edit_project(self): 
     project_name = 'unit test project'
     mm_response = test_helper.edit_project(self, project_name, package={ "ApexClass" : "*" } )
     self.assertTrue(mm_response['success'] == True)
     self.assertTrue(mm_response['body'] == 'Project Edited Successfully')
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', project_name)))
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', project_name, 'src')))
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', project_name, 'src', 'classes')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', project_name, 'src', 'pages')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', project_name, 'src', 'reports')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', project_name, 'src', 'documents')))
Exemplo n.º 2
0
 def test_02_edit_project(self): 
     stdin = test_helper.edit_project("unit test project", package={ "ApexClass" : "*" } )
     mm_response = self.output.getvalue()
     mm_json_response = util.parse_mm_response(mm_response)
     sys.stdout = self.saved_stdout
     self.assertTrue(mm_json_response['success'] == True)
     self.assertTrue(mm_json_response['body'] == 'Project Edited Successfully')
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'])))
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src')))
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src', 'classes')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src', 'pages')))
Exemplo n.º 3
0
 def test_02_edit_project(self): 
     stdin = test_helper.edit_project("unit test project", package={ "ApexClass" : "*" } )
     mm_response = self.output.getvalue()
     sys.stdout = self.saved_stdout
     print mm_response
     mm_json_response = util.parse_mm_response(mm_response)
     self.assertTrue(mm_json_response['success'] == True)
     self.assertTrue(mm_json_response['body'] == 'Project Edited Successfully')
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'])))
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src')))
     self.assertTrue(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src', 'classes')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src', 'pages')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src', 'reports')))
     self.assertFalse(os.path.exists(os.path.join(base_test_directory, 'test_workspace', stdin['project_name'], 'src', 'documents')))