class Test
def createVM(self, name):
self.name=name
def stateVM(self):
print('Your VMname is %s' % self.name)
print('Another Way to print the string from the method ' + self.name)
return(self.name)
firstHost = VMname()
firstHost.createVM('email.foo.org')
Hname1 = firstHost.stateVM()
print('A third way to print your 1st VM ' + str(Hname1))
secondHost = VMname()
secondHost.createVM('ldap.bar.org')
Hname2 = secondHost.stateVM()
print('A third way to print your 2nd VM ' + str(Hname2))
Select : Python from the language
Click Test Examples
Check the Result
Expected Result
Must fix the Issue.
Must display compile error
Actual Result
Test Passes
Environment
IE 11, Safari 5.1.7, Chrome 37.0.2062.102 m and FF 32.0.2 in Windows 7
Image
Bug Hunt
Marathon Match Web Interface QA For 201410 Release
Description
Test Example' passes when we use different class name as indicated by using python language
Steps
Go to : https://qa.arena.topcoder.com/longcontest/?module=ViewActiveContests In the Table Click 'Register/Submit' Login Using a valid user Click 'Agree'
Enter Python Code
class Test def createVM(self, name): self.name=name def stateVM(self): print('Your VMname is %s' % self.name) print('Another Way to print the string from the method ' + self.name) return(self.name)
firstHost = VMname() firstHost.createVM('email.foo.org') Hname1 = firstHost.stateVM() print('A third way to print your 1st VM ' + str(Hname1))
secondHost = VMname() secondHost.createVM('ldap.bar.org') Hname2 = secondHost.stateVM() print('A third way to print your 2nd VM ' + str(Hname2))
Select : Python from the language Click Test Examples Check the Result
Expected Result
Must fix the Issue.
Actual Result
Test Passes
Environment
IE 11, Safari 5.1.7, Chrome 37.0.2062.102 m and FF 32.0.2 in Windows 7
Image
Bug Hunt
Marathon Match Web Interface QA For 201410 Release