Skip to content

Instantly share code, notes, and snippets.

@jeffbrl
Last active September 16, 2015 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffbrl/1907beecdc0f27aeb787 to your computer and use it in GitHub Desktop.
Save jeffbrl/1907beecdc0f27aeb787 to your computer and use it in GitHub Desktop.
Simple class to be tested (robot framework example)
#!/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