summaryrefslogtreecommitdiff
path: root/testing/code/test_class.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-02-22 14:56:35 +0530
committerPrabhu Ramachandran2017-02-22 14:56:35 +0530
commitd5c20e445b193fad5cb4339f00e11212fdd39c0a (patch)
tree94425bf5693fd7797fe128678614b4de364b0df9 /testing/code/test_class.py
parentba725c5af9ac1c7064211589ff561fb79f3853b4 (diff)
downloadpython-workshops-d5c20e445b193fad5cb4339f00e11212fdd39c0a.tar.gz
python-workshops-d5c20e445b193fad5cb4339f00e11212fdd39c0a.tar.bz2
python-workshops-d5c20e445b193fad5cb4339f00e11212fdd39c0a.zip
Add basic slides for workshop on pytest.
Diffstat (limited to 'testing/code/test_class.py')
-rw-r--r--testing/code/test_class.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/code/test_class.py b/testing/code/test_class.py
new file mode 100644
index 0000000..36f67bd
--- /dev/null
+++ b/testing/code/test_class.py
@@ -0,0 +1,11 @@
+
+class TestSomething(object):
+ def test_something_has_hello(self):
+ x = 'hello1'
+ y = 'hello world'
+ assert x in y
+
+ def test_something_else(self):
+ a = [1, 2, 3]
+ b = {1, 2, 3}
+ assert a == b