Last active
September 16, 2015 15:43
-
-
Save jeffbrl/1907beecdc0f27aeb787 to your computer and use it in GitHub Desktop.
Simple class to be tested (robot framework example)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
class NameChecker(object): | |
def __init__(self): | |
self._name = None | |
def set_name(self, name): | |
self._name = name | |
def is_valid(self): | |
if self._name == 'Bruce': | |
return True | |
else: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment